Lines Matching refs:obj2
37 var obj1, obj2;
39 // obj1 and obj2 share the getter accessor.
42 obj2 = {}
43 dp(obj2, "alpha", { get: getter });
45 assertEquals(111, obj2.alpha);
47 assertEquals(111, obj2.alpha);
49 // obj1, obj2, and obj3 share the getter accessor.
52 obj2 = {}
53 dp(obj2, "alpha", { get: getter });
60 // obj1 and obj2 share the getter and setter accessor.
64 obj2 = {}
65 dp(obj2, "alpha", { get: getter, set: setter });
67 assertEquals(111, obj2.alpha);
69 obj2.alpha = 100
70 assertEquals(111, obj2.alpha);