Lines Matching defs:Object
46 assertArrayEquals("[object Arguments]", Object.prototype.toString.call(args));
101 // if arguments object is sloppy, copyWithin must move the arguments around
130 // test on array-like object with holes
188 return Object.freeze([1, , 3, , 4, 5]).copyWithin(2, 1, 4);
193 return Object.seal([1, , 3, , 4, 5]).copyWithin(2, 1, 4);
198 return Object.preventExtensions([1, , 3, , 4, 5]).copyWithin(2, 1, 4);
206 return Object.freeze([1, 2, 3, 4, 5]).copyWithin(0, 3);
211 return Object.seal([, 2, 3, 4, 5]).copyWithin(0, 3);
216 return Object.preventExtensions([ , 2, 3, 4, 5]).copyWithin(0, 3);
224 var arr = Object.defineProperty([1, 2, 3, 4, 5], 1, {
248 var arr = Object.defineProperty({ 0: 1, 1: 2, 2: 3, 3: 4, 4: 5 }, "length", {
299 var object = { length: large };
303 object[(large - 11) + i] = { num: i };
306 Array.prototype.copyWithin.call(object, 1, large - 10);
310 var old_ref = object[(large - 11) + i];
311 var new_ref = object[i];
317 assertEquals(large, object.length);
328 // tamper the global Object prototype and test this works
329 Object.prototype[2] = 1;
331 delete Object.prototype[2];
333 Object.prototype[3] = "FAKE";
335 delete Object.prototype[3];