Lines Matching full:reflect
7 assertEquals(2, Reflect.construct.length);
13 new Reflect.construct(function(){}, []);
20 assertInstanceof(Reflect.construct(Constructor, []), Constructor);
26 assertInstanceof(Reflect.construct(Constructor, []), Constructor);
33 assertSame(R, Reflect.construct(Constructor, []));
40 assertSame(R, Reflect.construct(Constructor, []));
47 var O = Reflect.construct(Constructor, [], Array);
58 var O = Reflect.construct(Constructor, [], Array);
73 var O = Reflect.construct(Array, [1, 2, 3], Constructor);
91 var O = Reflect.construct(Array, [1, 2, 3], Constructor);
108 var O = Reflect.construct(A, [], B);
118 var O = Reflect.construct(A, [], B);
129 assertEquals(0, Reflect.construct(lengthStrict, []).a);
130 assertEquals(0, Reflect.construct(lengthSloppy, []).a);
131 assertEquals(0, Reflect.construct(lengthStrict, {}).a);
132 assertEquals(0, Reflect.construct(lengthSloppy, {}).a);
135 assertEquals(i, Reflect.construct(lengthStrict, new Array(i)).a);
136 assertEquals(i, Reflect.construct(lengthSloppy, new Array(i)).a);
137 assertEquals(i, Reflect.construct(lengthStrict, { length: i }).a);
138 assertEquals(i, Reflect.construct(lengthSloppy, { length: i }).a);
154 Reflect.construct(noopStrict, argsList);
158 Reflect.construct(noopSloppy, argsList);
174 Reflect.construct(noopStrict, argsList);
178 Reflect.construct(noopSloppy, argsList);
185 assertThrows(function() { Reflect.construct(void 0, []); }, TypeError);
186 assertThrows(function() { Reflect.construct(null, []); }, TypeError);
187 assertThrows(function() { Reflect.construct(123, []); }, TypeError);
188 assertThrows(function() { Reflect.construct("str", []); }, TypeError);
189 assertThrows(function() { Reflect.construct(Symbol("x"), []); }, TypeError);
190 assertThrows(function() { Reflect.construct(/123/, []); }, TypeError);
191 assertThrows(function() { Reflect.construct(NaN, []); }, TypeError);
192 assertThrows(function() { Reflect.construct({}, []); }, TypeError);
193 assertThrows(function() { Reflect.construct([], []); }, TypeError);
198 assertThrows(function() { Reflect.construct(void 0, []); }, TypeError);
199 assertThrows(function() { Reflect.construct(null, []); }, TypeError);
200 assertThrows(function() { Reflect.construct(123, []); }, TypeError);
201 assertThrows(function() { Reflect.construct("str", []); }, TypeError);
202 assertThrows(function() { Reflect.construct(Symbol("x"), []); }, TypeError);
203 assertThrows(function() { Reflect.construct(/123/, []); }, TypeError);
204 assertThrows(function() { Reflect.construct(NaN, []); }, TypeError);
205 assertThrows(function() { Reflect.construct({}, []); }, TypeError);
206 assertThrows(function() { Reflect.construct([], []); }, TypeError);
213 assertThrows(function() { Reflect.construct(noopStrict, null); }, TypeError);
214 assertThrows(function() { Reflect.construct(noopSloppy, null); }, TypeError);
215 assertThrows(function() { Reflect.construct(noopStrict, 1); }, TypeError);
216 assertThrows(function() { Reflect.construct(noopSloppy, 1); }, TypeError);
217 assertThrows(function() { Reflect.construct(noopStrict, "BAD"); }, TypeError);
218 assertThrows(function() { Reflect.construct(noopSloppy, "BAD"); }, TypeError);
219 assertThrows(function() { Reflect.construct(noopStrict, true); }, TypeError);
220 assertThrows(function() { Reflect.construct(noopSloppy, true); }, TypeError);
222 assertThrows(function() { Reflect.construct(noopStrict, sym); }, TypeError);
223 assertThrows(function() { Reflect.construct(noopSloppy, sym); }, TypeError);
249 assertEquals("OK!", Reflect.construct(firstStrict, ["OK!"]).a);
250 assertEquals("OK!", Reflect.construct(firstSloppy, ["OK!"]).a);
251 assertEquals("OK!", Reflect.construct(firstStrict,
253 assertEquals("OK!", Reflect.construct(firstSloppy,
255 assertEquals("OK!", Reflect.construct(lastStrict,
257 assertEquals("OK!", Reflect.construct(lastSloppy,
259 assertEquals("OK!", Reflect.construct(lastStrict,
261 assertEquals("OK!", Reflect.construct(lastSloppy,
263 assertEquals("TEST", Reflect.construct(sumStrict,
265 assertEquals("TEST!!", Reflect.construct(sumStrict,
267 assertEquals(10, Reflect.construct(sumStrict,
269 assertEquals("TEST", Reflect.construct(sumSloppy,
271 assertEquals("TEST!!", Reflect.construct(sumSloppy,
273 assertEquals(10, Reflect.construct(sumSloppy,
280 assertThrows(()=>Reflect.construct(f, [], g));
357 var o = Reflect.construct(