Lines Matching defs:obj
24 * obj.__proto__ = this, 'five' should become a read-only propery of obj.
26 * If we then change obj.__proto__ to null, obj.five should initially be
27 * undefined. We should be able to define obj.five to whatever we want,
28 * and be able to access this value as obj.five.
30 * Bug 53268 was filed because obj.five could not be set or accessed after
31 * obj.__proto__ had been set to the global object and then to null.
35 var status = 'Testing scope after changing obj.__proto__';
38 var obj = {};
54 status= 'Step 1: setting obj.__proto__ = global object';
55 obj.__proto__ = this;
57 actual = obj.five;
61 obj.five=1;
62 actual = obj.five;
68 status= 'Step 2: setting obj.__proto__ = null';
69 obj.__proto__ = null;
71 actual = obj.five;
75 obj.five=2;
76 actual = obj.five;
82 status= 'Step 3: setting obj.__proto__ to global object again';
83 obj.__proto__ = this;
85 actual = obj.five;
89 obj.five=3;
90 actual = obj.five;
96 status= 'Step 4: setting obj.__proto__ to null again';
97 obj.__proto__ = null;
99 actual = obj.five;
103 obj.five=4;
104 actual = obj.five;