Home | History | Annotate | Download | only in mjsunit

Lines Matching full:obj1

63 var obj1 = {};
116 Object.defineProperty(obj1, "foo", undefined);
124 Object.defineProperty(obj1, "foo", emptyDesc);
127 assertEquals(undefined, obj1.foo);
131 var desc = Object.getOwnPropertyDescriptor(obj1, "foo");
142 desc = Object.getOwnPropertyDescriptor(obj1, "bar");
147 Object.defineProperty(obj1, "foo", accessorConfigurable);
155 Object.defineProperty(obj1, "bar", accessorConfigurable);
156 desc = Object.getOwnPropertyDescriptor(obj1, "bar");
163 assertEquals(1, obj1.bar = 1);
165 assertEquals(1, obj1.bar = 1);
167 assertEquals(2, obj1.bar);
170 Object.defineProperty(obj1, "bar", accessorNoConfigurable);
171 desc = Object.getOwnPropertyDescriptor(obj1, "bar");
178 assertEquals(1, obj1.bar = 1);
181 assertEquals(1, obj1.bar = 1)
184 assertEquals(2, obj1.bar);
188 Object.defineProperty(obj1, "bar", accessorConfigurable);
196 Object.defineProperty(obj1, "bar", dataConfigurable);
203 Object.defineProperty(obj1, "bar", accessorNoConfigurable);
204 desc = Object.getOwnPropertyDescriptor(obj1, "bar");
211 assertEquals(1, obj1.bar = 1);
214 assertEquals(1, obj1.bar = 1)
217 assertEquals(4, obj1.bar);
220 Object.defineProperty(obj1, "setOnly", accessorOnlySet);
221 desc = Object.getOwnPropertyDescriptor(obj1, "setOnly");
228 assertEquals(1, obj1.setOnly = 1);
232 Object.defineProperty(obj1, "setOnly", accessorOnlyGet);
233 desc = Object.getOwnPropertyDescriptor(obj1, "setOnly");
240 assertEquals(1, obj1.setOnly = 1);
245 Object.defineProperty(obj1, "both", accessorConfigurable);
247 Object.defineProperty(obj1, "both", accessorOnlySet);
248 desc = Object.getOwnPropertyDescriptor(obj1, "both");
255 assertEquals(1, obj1.both = 1);
261 Object.defineProperty(obj1, "foobar", dataConfigurable);
262 desc = Object.getOwnPropertyDescriptor(obj1, "foobar");
263 assertEquals(obj1.foobar, 1000);
271 obj1.foobar = 1001;
272 assertEquals(obj1.foobar, 1000);
276 Object.defineProperty(obj1, "foobar", dataWritable);
277 desc = Object.getOwnPropertyDescriptor(obj1, "foobar");
278 assertEquals(obj1.foobar, 3000);
288 obj1.foobar = 1001;
289 assertEquals(obj1.foobar, 1001);
293 Object.defineProperty(obj1, "foobar", dataNoConfigurable);
294 desc = Object.getOwnPropertyDescriptor(obj1, "foobar");
295 assertEquals(obj1.foobar, 2000);
305 Object.defineProperty(obj1, "foobar", dataConfigurable);
313 Object.defineProperty(obj1, "foobar", dataConfigurable);
321 Object.defineProperty(obj1, "foobar", dataNoConfigurable);
322 desc = Object.getOwnPropertyDescriptor(obj1, "foobar");
323 assertEquals(obj1.foobar, 2000);
1104 obj1 = {};
1105 Object.defineProperty(obj1
1106 obj2 = Object.create(obj1);
1115 Object.defineProperty(obj1, "quebec", { get: anotherGetter });
1134 obj1 = {};
1135 Object.defineProperty(obj1, "romeo", { set: setter, configurable: true });
1136 obj2 = Object.create(obj1);
1145 Object.defineProperty(obj1, "romeo", { set: anotherSetter });
1159 obj1 = {};
1160 Object.defineProperty(obj1, "sierra",
1162 obj2 = Object.create(obj1);
1171 Object.defineProperty(obj1, "sierra",