Lines Matching refs:WeakMap
16 var m1 = new WeakMap();
18 assert (m1.set (k1, 3.14) instanceof WeakMap);
27 assert (m1.set (k1, "asd" + "fgh") instanceof WeakMap);
49 assert (m1.set (k1, "frozen") instanceof WeakMap);
55 var m2 = new WeakMap();
76 m1 = new WeakMap();
87 WeakMap();
94 WeakMap.prototype.get.call({}); class
100 assert (new WeakMap(null) instanceof WeakMap);
104 m1 = new WeakMap([[k1, 1.2], [k2, 1.3]]);
113 m1 = new WeakMap();
122 m1 = new WeakMap();
128 m1 = new WeakMap();
132 new WeakMap([[1,2],[3,4]]);
157 new WeakMap(iter);
164 assert (WeakMap.prototype.toString() === "[object WeakMap]");
166 WeakMap.prototype.set = function () { throw "abrupt set" };
169 new WeakMap([[{}, 1]]);
175 Object.defineProperty(WeakMap.prototype, 'set', {
180 new WeakMap([]);