Lines Matching refs:arguments
50 // Check various forms of arguments omission.
89 // More than 2 arguments:
118 // performing ToInteger on arguments.
222 // Check slicing on arguments object.
225 assertEquals(expected, Array.prototype.slice.call(arguments, 1));
235 // Check slicing on arguments object when missing arguments get assigined.
238 assertEquals(1, arguments.length);
241 assertEquals(1, arguments.length); // arguments length is the same.
242 assertEquals([x], Array.prototype.slice.call(arguments, 0));
248 // Check slicing on arguments object when length property has been set.
251 assertEquals(1, arguments.length);
252 arguments.length = 7;
253 assertEquals([x,,,,,,,], Array.prototype.slice.call(arguments, 0));
259 // Check slicing on arguments object when length property has been set to
263 assertEquals(1, arguments.length);
264 arguments.length = 'foobar';
265 assertEquals([], Array.prototype.slice.call(arguments, 0));
271 // Check slicing on arguments object when extra argument has been added
275 assertEquals(1, arguments.length);
276 arguments[3] = 239;
277 assertEquals([x], Array.prototype.slice.call(arguments, 0));
283 // Check slicing on arguments object when argument has been deleted by index.
286 assertEquals(3, arguments.length);
287 delete arguments[1];
288 assertEquals([x,,z], Array.prototype.slice.call(arguments, 0));
297 delete arguments[1];
298 arguments.__proto__[1] = 5;
299 var result = Array.prototype.slice.call(arguments);
300 delete arguments.__proto__[1];