summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Map-surfaces-3.js
blob: 41e072c91bce742b02945e857e8f0cdc78e3e862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Map methods work when arguments are omitted.

var m = new Map;
assertEq(m.has(), false);
assertEq(m.get(), undefined);
assertEq(m.delete(), false);
assertEq(m.has(), false);
assertEq(m.get(), undefined);
assertEq(m.set(), m);
assertEq(m.has(), true);
assertEq(m.get(), undefined);
assertEq(m.delete(), true);
assertEq(m.has(), false);
assertEq(m.get(), undefined);