Lines Matching full:obj2
99 var obj2 = {};
102 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true });
104 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
110 assertTrue(Object.isExtensible(obj2));
111 assertFalse(Object.isFrozen(obj2));
112 Object.freeze(obj2);
113 assertTrue(Object.isFrozen(obj2));
114 assertFalse(Object.isExtensible(obj2));
116 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
122 obj2.foo = 42;
123 assertEquals(obj2.foo, undefined);
215 obj2 = { prop1: 3, prop2: 4 };
216 assertTrue(%HaveSameMap(obj, obj2));
218 Object.freeze(obj2);
220 assertTrue(Object.isFrozen(obj2));
221 assertTrue(%HaveSameMap(obj, obj2));
225 obj2 = { prop1: 3, prop2: 4, 150: 'bar' };
226 assertTrue(%HaveSameMap(obj, obj2));
228 Object.freeze(obj2);
230 assertTrue(Object.isFrozen(obj2));
231 assertTrue(%HaveSameMap(obj, obj2));