Lines Matching refs:object
39 var object = {__proto__:{}}; variable
40 %AddNamedProperty(object, "foo", func1, DONT_ENUM | DONT_DELETE);
41 %AddNamedProperty(object, "bar", func1, DONT_ENUM | READ_ONLY);
42 %AddNamedProperty(object, "baz", func1, DONT_DELETE | READ_ONLY);
43 %AddNamedProperty(object.__proto__, "bif", func1, DONT_ENUM | DONT_DELETE);
44 object.bif = func2;
56 assertArrayEquals(["baz", "bif"], enumerable(object), "enum0");
57 assertFalse(delete object.foo, "delete foo");
58 assertFalse(delete object.baz, "delete baz");
59 assertEquals(func1, object.foo, "read foo");
60 assertEquals(func1, object.bar, "read bar");
61 assertEquals(func1, object.baz, "read baz");
62 assertEquals(func2, object.bif, "read bif");
65 object.bar = "NO WAY";
66 assertEquals(func1, object.bar, "read bar 2");
67 assertArrayEquals(["baz", "bif"], enumerable(object), "enum1");
70 object.foo = func2;
71 assertArrayEquals(["baz", "bif"], enumerable(object), "enum2");
72 assertFalse(delete object.foo, "delete foo 2");
75 assertTrue(delete object.bar, "delete bar");
76 assertFalse("bar" in object, "has bar");
77 object.bar = func2;
78 assertTrue("bar" in object, "has bar 2");
79 assertEquals(func2, object.bar, "read bar 3");
81 assertArrayEquals(["bar", "baz", "bif"], enumerable(object), "enum3");
84 assertTrue(delete object.bif, "delete bif");
85 assertArrayEquals(["bar", "baz"], enumerable(object), "enum4");
86 assertEquals(func1, object.bif, "read bif 2");
88 assertTrue(delete object.bif, "delete bif 2");
89 assertArrayEquals(["bar", "baz"], enumerable(object), "enum5");
90 assertEquals(func1, object.bif, "read bif3");