Lines Matching defs:obj
57 var obj = { x: 42, z: 'foobar' };
58 var desc = Object.getOwnPropertyDescriptor(obj, 'x');
63 desc = Object.getOwnPropertyDescriptor(obj, 'z');
68 assertTrue(Object.isExtensible(obj));
69 assertFalse(Object.isFrozen(obj));
71 Object.freeze(obj);
74 assertFalse(Object.isExtensible(obj));
75 assertTrue(Object.isFrozen(obj));
77 obj.foo = 42;
78 assertEquals(obj.foo, undefined);
80 desc = Object.getOwnPropertyDescriptor(obj, 'x');
85 desc = Object.getOwnPropertyDescriptor(obj, 'z');
92 obj.x = "tete";
93 assertEquals(42, obj.x);
94 obj.x = { get: function() {return 43}, set: function() {} };
95 assertEquals(42, obj.x);