Lines Matching defs:obj2
89 var obj2 = {};
92 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true });
94 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
100 assertTrue(Object.isExtensible(obj2));
101 assertFalse(Object.isSealed(obj2));
102 Object.seal(obj2);
106 assertTrue(Object.isFrozen(obj2));
107 assertFalse(Object.isExtensible(obj2));
108 assertTrue(Object.isSealed(obj2));
110 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
116 obj2.foo = 42;
117 assertEquals(obj2.foo, undefined);
279 obj2 = { prop1: 3, prop2: 4 };
280 assertTrue(%HaveSameMap(obj, obj2));
282 Object.seal(obj2);
284 assertTrue(Object.isSealed(obj2));
286 assertFalse(Object.isFrozen(obj2));
287 assertTrue(%HaveSameMap(obj, obj2));
291 obj2 = { prop1: 3, prop2: 4, 150: 'bar' };
292 assertTrue(%HaveSameMap(obj, obj2));
294 Object.seal(obj2);
296 assertTrue(Object.isSealed(obj2));
299 assertTrue(%HaveSameMap(obj, obj2));