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);
81 desc = Object.getOwnPropertyDescriptor(obj, 'x');
82 assertFalse(desc.writable);
83 assertFalse(desc.configurable);
84 assertEquals(42, desc.value);
86 desc = Object.getOwnPropertyDescriptor(obj, 'z');
87 assertFalse(desc.writable);
88 assertFalse(desc.configurable);
89 assertEquals("foobar", desc.value);
104 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
105 assertTrue(desc.configurable);
106 assertEquals(undefined, desc.value);
107 assertEquals(set, desc.set);
108 assertEquals(get, desc.get);
116 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
117 assertFalse(desc.configurable);
118 assertEquals(undefined, desc.value);
119 assertEquals(set, desc.set);
120 assertEquals(get, desc.get);
129 desc = Object.getOwnPropertyDescriptor(arr, '0');
130 assertTrue(desc.configurable);
131 assertTrue(desc.writable);
132 assertEquals(42, desc.value);
134 desc = Object.getOwnPropertyDescriptor(arr, '1');
135 assertTrue(desc.configurable);
136 assertTrue(desc.writable);
137 assertEquals(43, desc.value);
145 desc = Object.getOwnPropertyDescriptor(arr, '0');
146 assertFalse(desc.configurable);
147 assertFalse(desc.writable);
148 assertEquals(42, desc.value);
150 desc = Object.getOwnPropertyDescriptor(arr, '1');
151 assertFalse(desc.configurable);
152 assertFalse(desc.writable);
153 assertEquals(43, desc.value);
201 desc = Object.getOwnPropertyDescriptor(obj, 'x');
202 assertTrue(desc.enumerable);
203 desc = Object.getOwnPropertyDescriptor(obj, 'y');
204 assertFalse(desc.enumerable);
260 desc = Object.getOwnPropertyDescriptor(obj, 'x' + i); property
261 assertFalse(desc.writable);
262 assertFalse(desc.configurable);