Lines Matching refs:desc
58 var desc = Object.getOwnPropertyDescriptor(obj, 'x');
59 assertTrue(desc.writable);
60 assertTrue(desc.configurable);
61 assertEquals(42, desc.value);
63 desc = Object.getOwnPropertyDescriptor(obj, 'z');
64 assertTrue(desc.writable);
65 assertTrue(desc.configurable);
66 assertEquals('foobar', desc.value);
80 desc = Object.getOwnPropertyDescriptor(obj, 'x');
81 assertFalse(desc.writable);
82 assertFalse(desc.configurable);
83 assertEquals(42, desc.value);
85 desc = Object.getOwnPropertyDescriptor(obj, 'z');
86 assertFalse(desc.writable);
87 assertFalse(desc.configurable);
88 assertEquals("foobar", desc.value);
103 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
104 assertTrue(desc.configurable);
105 assertEquals(undefined, desc.value);
106 assertEquals(set, desc.set);
107 assertEquals(get, desc.get);
115 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
116 assertFalse(desc.configurable);
117 assertEquals(undefined, desc.value);
118 assertEquals(set, desc.set);
119 assertEquals(get, desc.get);
128 desc = Object.getOwnPropertyDescriptor(arr, '0');
129 assertTrue(desc.configurable);
130 assertTrue(desc.writable);
131 assertEquals(42, desc.value);
133 desc = Object.getOwnPropertyDescriptor(arr, '1');
134 assertTrue(desc.configurable);
135 assertTrue(desc.writable);
136 assertEquals(43, desc.value);
144 desc = Object.getOwnPropertyDescriptor(arr, '0');
145 assertFalse(desc.configurable);
146 assertFalse(desc.writable);
147 assertEquals(42, desc.value);
149 desc = Object.getOwnPropertyDescriptor(arr, '1');
150 assertFalse(desc.configurable);
151 assertFalse(desc.writable);
152 assertEquals(43, desc.value);