michael@0: // Number keys are distinct from string keys that would name the same property. michael@0: michael@0: var s = new Set; michael@0: michael@0: s.add(17); michael@0: assertEq(s.has("17"), false); michael@0: assertEq(s.has(17), true); michael@0: s.add("17"); michael@0: assertEq(s.delete(17), true); michael@0: assertEq(s.has("17"), true); michael@0: assertEq(s.has(17), false);