Lines Matching refs:object
13 function restore(object, oldProto) { argument
14 delete object[Symbol.unscopables];
15 delete object.x;
16 delete object.x_;
17 delete object.y;
18 delete object.z;
19 Object.setPrototypeOf(object, oldProto);
61 var object = getObject(i);
62 var oldObjectProto = Object.getPrototypeOf(object);
63 f(object);
64 restore(object, oldObjectProto);
69 var object = getObject(i);
71 if (object === proto) {
74 var oldObjectProto = Object.getPrototypeOf(object);
76 f(object, proto);
77 restore(object, oldObjectProto);
120 function TestBasics(object) { argument
124 object.x = 4;
125 object.y = 5;
127 with (object) {
135 object[Symbol.unscopables] = {x: truthyValue}; variable in TestBasics
136 with (object) {
145 object[Symbol.unscopables] = {x: falsyValue, y: true}; variable in TestBasics
146 with (object) {
155 object[Symbol.unscopables] = {x: xFalsy, y: yFalsy}; variable in TestBasics
156 with (object) {
167 function TestUnscopableChain(object) { argument
169 object.x = 2;
171 with (object) {
175 object[Symbol.unscopables] = { variable in TestUnscopableChain
178 with (object) {
182 object[Symbol.unscopables] = { variable in TestUnscopableChain
185 with (object) {
192 function TestBasicsSet(object) { argument
194 object.x = 2;
196 with (object) {
200 object[Symbol.unscopables] = {x: true}; variable in TestBasicsSet
201 with (object) {
208 assertEquals(2, object.x);
213 function TestOnProto(object, proto) { argument
219 Object.setPrototypeOf(object, proto);
220 object.y = 5;
222 with (object) {
229 with (object) {
235 object[Symbol.unscopables] = {y: true}; variable in TestOnProto
236 with (object) {
243 object[Symbol.unscopables] = {x: true}; variable in TestOnProto
244 with (object) {
251 object[Symbol.unscopables] = {x: true, y: undefined}; variable in TestOnProto
252 with (object) {
261 function TestSetBlockedOnProto(object, proto) { argument
263 object.x = 2;
265 with (object) {
269 Object.setPrototypeOf(object, proto);
271 with (object) {
278 assertEquals(2, object.x);
283 function TestNonObject(object) { argument
286 object.x = 3;
287 object.y = 4;
289 object[Symbol.unscopables] = 'xy';
290 with (object) {
295 object[Symbol.unscopables] = null;
296 with (object) {
304 function TestChangeDuringWith(object) { argument
307 object.x = 3;
308 object.y = 4;
310 with (object) {
313 object[Symbol.unscopables] = {x: true}; variable in TestChangeDuringWith
321 function TestChangeDuringWithWithPossibleOptimization(object) { argument
323 object.x = 2;
324 with (object) {
326 if (i === 500) object[Symbol.unscopables] = {x: true};
334 function TestChangeDuringWithWithPossibleOptimization2(object) { argument
336 object.x = 2;
337 object[Symbol.unscopables] = {x: true}; variable in TestChangeDuringWithWithPossibleOptimization2
338 with (object) {
340 if (i === 500) delete object[Symbol.unscopables];
348 function TestChangeDuringWithWithPossibleOptimization3(object) { argument
350 object.x = 2;
351 object[Symbol.unscopables] = {};
352 with (object) {
354 if (i === 500) object[Symbol.unscopables].x = true;
362 function TestChangeDuringWithWithPossibleOptimization4(object) { argument
364 object.x = 2;
365 object[Symbol.unscopables] = {x: true}; variable in TestChangeDuringWithWithPossibleOptimization4
366 with (object) {
368 if (i === 500) delete object[Symbol.unscopables].x;
376 function TestChangeDuringWithWithPossibleOptimization4(object) {
378 object.x = 2;
379 object[Symbol.unscopables] = {x: true}; variable in TestChangeDuringWithWithPossibleOptimization4
380 with (object) {
382 if (i === 500) object[Symbol.unscopables].x = undefined;
390 function TestAccessorReceiver(object, proto) { argument
395 assertEquals(object, this);
402 Object.setPrototypeOf(object, proto);
405 with (object) {
412 function TestUnscopablesGetter(object) { argument
416 if (object === global) return;
419 object.x = 'object';
422 Object.defineProperty(object, Symbol.unscopables, {
429 with (object) {
436 Object.defineProperty(object, Symbol.unscopables, {
443 with (object) {
450 Object.defineProperty(object, Symbol.unscopables, {
457 with (object) {
462 assertEquals(1, object.x);
464 with (object) {
469 assertEquals(1, object.x);
484 objects.forEach(function(object) { argument
487 assertEquals(object, this);
493 object.__proto__ = proto;
494 Object.defineProperty(object, 'x', {
496 assertEquals(object, this);
502 with (object) {
506 object[Symbol.unscopables] = {x: true}; variable
507 with (object) {
512 delete object[Symbol.unscopables];
522 function TestSetterOnBlacklisted(object, proto) { argument
533 Object.setPrototypeOf(object, proto);
534 Object.defineProperty(object, 'x', {
543 object.x_ = 1;
545 with (object) {
550 assertEquals(2, object.x);
552 object[Symbol.unscopables] = {x: true}; variable in TestSetterOnBlacklisted
554 with (object) {
559 assertEquals(2, object.x);
564 function TestObjectsAsUnscopables(object, unscopables) { argument
566 object.x = 2;
568 with (object) {
570 object[Symbol.unscopables] = unscopables;
577 function TestAccessorOnUnscopables(object) { argument
579 object.x = 2;
589 with (object) {
591 object[Symbol.unscopables] = unscopables;
600 function TestLengthUnscopables(object, proto) { argument
602 with (object) {
604 object[Symbol.unscopables] = {length: true}; variable in TestLengthUnscopables
606 delete object[Symbol.unscopables];
615 function TestFunctionNameUnscopables(object) { argument
617 with (object) {
619 object[Symbol.unscopables] = {name: true}; variable in TestFunctionNameUnscopables
621 delete object[Symbol.unscopables];
694 var object = { variable in TestGetUnscopablesGetterThrows
700 Object.defineProperty(object, Symbol.unscopables, {
706 with (object) {
715 var object = { variable in TestGetUnscopablesGetterThrows2
722 object[Symbol.unscopables] = { variable in TestGetUnscopablesGetterThrows2
728 with (object) {