1 2 3 4 5 6 7 8
// Clearing an empty Map has no effect. var m = new Map(); for (var i = 0; i < 2; i++) { m.clear(); assertEq(m.size, 0); assertEq(m.has(undefined), false); }