Lines Matching refs:new
33 assertDoesNotThrow(function () { m.add(new Object) });
34 assertDoesNotThrow(function () { m.has(new Object) });
35 assertDoesNotThrow(function () { m.delete(new Object) });
37 TestValidSetCalls(new Set);
42 assertDoesNotThrow(function () { m.get(new Object) });
43 assertDoesNotThrow(function () { m.set(new Object) });
44 assertDoesNotThrow(function () { m.has(new Object) });
45 assertDoesNotThrow(function () { m.delete(new Object) });
47 TestValidMapCalls(new Map);
48 TestValidMapCalls(new WeakMap);
62 TestInvalidCalls(new WeakMap);
75 TestSet(set, new Object);
85 TestSetBehavior(new Set);
94 TestMapping(m, new Object, 23);
95 TestMapping(m, new Object, 'the-value');
96 TestMapping(m, new Object, new Object);
98 TestMapBehavior1(new Map);
99 TestMapBehavior1(new WeakMap);
105 TestMapping(m, i, new Object);
106 TestMapping(m, i / 10, new Object);
107 TestMapping(m, 'key-' + i, new Object);
111 TestMapping(m, keys[i], new Object);
114 TestMapBehavior2(new Map);
119 var key = new Object;
122 assertFalse(m.has(new Object));
125 assertFalse(m.has(new Object));
127 TestQuery(new Map);
128 TestQuery(new WeakMap);
133 var key = new Object;
137 assertFalse(m.delete(new Object));
140 TestDelete(new Map);
141 TestDelete(new WeakMap);
146 var key = new Object;
151 TestGC1(new Map);
152 TestGC1(new WeakMap);
157 var head = new Object;
159 m.set(key, new Object);
168 TestGC2(new Map);
169 TestGC2(new WeakMap);
181 assertArrayEquals([], props(new func()));
198 TestMapping(m, new Object, 'foobar');
200 TestArbitrary(new Map);
201 TestArbitrary(new WeakMap);
211 var s = new Set;
219 var m = new Map;
230 var s = new Set;
238 var m = new Map;
247 var m = new WeakMap;
284 receivers: alwaysBogus.concat([ new Map, new WeakMap ]),
288 receivers: alwaysBogus.concat([ new Set, new WeakMap ]),
292 receivers: alwaysBogus.concat([ new Set, new Map ]),