blob: 25605b29ba49513fabc910b3e13f3c01c9405cff (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Number keys are distinct from string keys that would name the same property.
var s = new Set;
s.add(17);
assertEq(s.has("17"), false);
assertEq(s.has(17), true);
s.add("17");
assertEq(s.delete(17), true);
assertEq(s.has("17"), true);
assertEq(s.has(17), false);
|