summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Set-surfaces-3.js
blob: b487b7b22fc66ab00965ef4fd32118e5d5da8373 (plain)
1
2
3
4
5
6
7
8
9
10
// Set methods work when arguments are omitted.

var s = new Set;
assertEq(s.has(), false);
assertEq(s.delete(), false);
assertEq(s.has(), false);
assertEq(s.add(), s);
assertEq(s.has(), true);
assertEq(s.delete(), true);
assertEq(s.has(), false);