Lines Matching refs:desc
59 var desc = Object.getOwnPropertyDescriptor(obj, 'x');
60 assertTrue(desc.writable);
61 assertTrue(desc.configurable);
62 assertEquals(42, desc.value);
64 desc = Object.getOwnPropertyDescriptor(obj, 'z');
65 assertTrue(desc.writable);
66 assertTrue(desc.configurable);
67 assertEquals('foobar', desc.value);
86 desc = Object.getOwnPropertyDescriptor(obj, 'x');
87 assertTrue(desc.writable);
88 assertFalse(desc.configurable);
89 assertEquals(42, desc.value);
91 desc = Object.getOwnPropertyDescriptor(obj, 'z');
92 assertTrue(desc.writable);
93 assertFalse(desc.configurable);
94 assertEquals("foobar", desc.value);
107 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
108 assertTrue(desc.configurable);
109 assertEquals(undefined, desc.value);
110 assertEquals(set, desc.set);
111 assertEquals(get, desc.get);
123 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
124 assertFalse(desc.configurable);
125 assertEquals(undefined, desc.value);
126 assertEquals(set, desc.set);
127 assertEquals(get, desc.get);
135 desc = Object.getOwnPropertyDescriptor(arr, '0');
136 assertTrue(desc.configurable);
137 assertTrue(desc.writable);
138 assertEquals(42, desc.value);
140 desc = Object.getOwnPropertyDescriptor(arr, '1');
141 assertTrue(desc.configurable);
142 assertTrue(desc.writable);
143 assertEquals(43, desc.value);
154 desc = Object.getOwnPropertyDescriptor(arr, '0');
155 assertFalse(desc.configurable);
156 assertTrue(desc.writable);
157 assertEquals(42, desc.value);
159 desc = Object.getOwnPropertyDescriptor(arr, '1');
160 assertFalse(desc.configurable);
161 assertTrue(desc.writable);
162 assertEquals(43, desc.value);