Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:obj3

398 var obj3 = {x:1000};
399 obj3.__defineGetter__("foo", get);
400 obj3.__defineSetter__("foo", set);
402 desc = Object.getOwnPropertyDescriptor(obj3, "foo");
409 assertEquals(1, obj3.foo = 1);
410 assertEquals(1, obj3.x);
411 assertEquals(1, obj3.foo);
415 Object.defineProperty(obj3, "foo", accessorNoConfigurable);
416 desc = Object.getOwnPropertyDescriptor(obj3, "foo");
423 assertEquals(1, obj3.foo = 1);
425 assertEquals(5, obj3.foo);
428 obj3.__defineGetter__("bar", get);
429 obj3.__defineSetter__("bar", set);
433 Object.defineProperty(obj3, "bar", dataConfigurable);
434 desc = Object.getOwnPropertyDescriptor(obj3, "bar");
435 assertEquals(obj3.bar, 1000);