Lines Matching full:reflect
5 // Flags: --harmony-reflect
9 assertEquals(3, Reflect.apply.length);
15 new Reflect.apply(function(){}, null, []);
24 assertSame(this, Reflect.apply(returnThis, void 0, []));
25 assertSame(this, Reflect.apply(returnThis, null, []));
26 assertSame(this, Reflect.apply(returnThis, this, []));
27 assertSame(receiver, Reflect.apply(returnThis, receiver, []));
31 Object.getPrototypeOf(Reflect.apply(returnThis, "str", [])));
33 Object.getPrototypeOf(Reflect.apply(returnThis, 123, [])));
35 Object.getPrototypeOf(Reflect.apply(returnThis, true, [])));
38 Reflect.apply(returnThis, Symbol("test"), [])));
46 assertSame(void 0, Reflect.apply(returnThis, void 0, []));
47 assertSame(this, Reflect.apply(returnThis, this, []));
48 assertSame(receiver, Reflect.apply(returnThis, receiver, []));
53 assertSame("str", Reflect.apply(returnThis, "str", []));
54 assertSame(123, Reflect.apply(returnThis, 123, []));
55 assertSame(true, Reflect.apply(returnThis, true, []));
56 assertSame(regexp, Reflect.apply(returnThis, regexp, []));
57 assertSame(symbol, Reflect.apply(returnThis, symbol, []));
65 assertEquals(0, Reflect.apply(returnLengthStrict, this, []));
66 assertEquals(0, Reflect.apply(returnLengthSloppy, this, []));
67 assertEquals(0, Reflect.apply(returnLengthStrict, this, {}));
68 assertEquals(0, Reflect.apply(returnLengthSloppy, this, {}));
71 assertEquals(i, Reflect.apply(returnLengthStrict, this, new Array(i)));
72 assertEquals(i, Reflect.apply(returnLengthSloppy, this, new Array(i)));
73 assertEquals(i, Reflect.apply(returnLengthStrict, this, { length: i }));
74 assertEquals(i, Reflect.apply(returnLengthSloppy, this, { length: i }));
90 Reflect.apply(noopStrict, this, argsList);
94 Reflect.apply(noopSloppy, this, argsList);
110 Reflect.apply(noopStrict, this, argsList);
114 Reflect.apply(noopSloppy, this, argsList);
121 assertThrows(function() { Reflect.apply(void 0); }, TypeError);
122 assertThrows(function() { Reflect.apply(null); }, TypeError);
123 assertThrows(function() { Reflect.apply(123); }, TypeError);
124 assertThrows(function() { Reflect.apply("str"); }, TypeError);
125 assertThrows(function() { Reflect.apply(Symbol("x")); }, TypeError);
126 assertThrows(function() { Reflect.apply(/123/); }, TypeError);
127 assertThrows(function() { Reflect.apply(NaN); }, TypeError);
128 assertThrows(function() { Reflect.apply({}); }, TypeError);
129 assertThrows(function() { Reflect.apply([]); }, TypeError);
134 assertThrows(function() { Reflect.apply(void 0); }, TypeError);
135 assertThrows(function() { Reflect.apply(null); }, TypeError);
136 assertThrows(function() { Reflect.apply(123); }, TypeError);
137 assertThrows(function() { Reflect.apply("str"); }, TypeError);
138 assertThrows(function() { Reflect.apply(Symbol("x")); }, TypeError);
139 assertThrows(function() { Reflect.apply(/123/); }, TypeError);
140 assertThrows(function() { Reflect.apply(NaN); }, TypeError);
141 assertThrows(function() { Reflect.apply({}); }, TypeError);
142 assertThrows(function() { Reflect.apply([]); }, TypeError);
150 assertThrows(function() { Reflect.apply(noopStrict, R, null); }, TypeError);
151 assertThrows(function() { Reflect.apply(noopSloppy, R, null); }, TypeError);
152 assertThrows(function() { Reflect.apply(noopStrict, R, 1); }, TypeError);
153 assertThrows(function() { Reflect.apply(noopSloppy, R, 1); }, TypeError);
154 assertThrows(function() { Reflect.apply(noopStrict, R, "BAD"); }, TypeError);
155 assertThrows(function() { Reflect.apply(noopSloppy, R, "BAD"); }, TypeError);
156 assertThrows(function() { Reflect.apply(noopStrict, R, true); }, TypeError);
157 assertThrows(function() { Reflect.apply(noopSloppy, R, true); }, TypeError);
159 assertThrows(function() { Reflect.apply(noopStrict, R, sym); }, TypeError);
160 assertThrows(function() { Reflect.apply(noopSloppy, R, sym); }, TypeError);
186 assertEquals("OK!", Reflect.apply(returnFirstStrict, this, ["OK!"]));
187 assertEquals("OK!", Reflect.apply(returnFirstSloppy, this, ["OK!"]));
188 assertEquals("OK!", Reflect.apply(returnFirstStrict, this,
190 assertEquals("OK!", Reflect.apply(returnFirstSloppy, this,
192 assertEquals("OK!", Reflect.apply(returnLastStrict, this,
194 assertEquals("OK!", Reflect.apply(returnLastSloppy, this,
196 assertEquals("OK!", Reflect.apply(returnLastStrict, this,
198 assertEquals("OK!", Reflect.apply(returnLastSloppy, this,
200 assertEquals("TEST", Reflect.apply(returnSumStrict, this,
202 assertEquals("TEST!!", Reflect.apply(returnSumStrict, this,
204 assertEquals(10, Reflect.apply(returnSumStrict, this,
206 assertEquals("TEST", Reflect.apply(returnSumSloppy, this,
208 assertEquals("TEST!!", Reflect.apply(returnSumSloppy, this,
210 assertEquals(10, Reflect.apply(returnSumSloppy, this,