• Home
  • Raw
  • Download

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);
85 desc = Object.getOwnPropertyDescriptor(obj, 'x');
86 assertTrue(desc.writable);
87 assertFalse(desc.configurable);
88 assertEquals(42, desc.value);
90 desc = Object.getOwnPropertyDescriptor(obj, 'z');
91 assertTrue(desc.writable);
92 assertFalse(desc.configurable);
93 assertEquals("foobar", desc.value);
106 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
107 assertTrue(desc.configurable);
108 assertEquals(undefined, desc.value);
109 assertEquals(set, desc.set);
110 assertEquals(get, desc.get);
122 desc = Object.getOwnPropertyDescriptor(obj2, 'x');
123 assertFalse(desc.configurable);
124 assertEquals(undefined, desc.value);
125 assertEquals(set, desc.set);
126 assertEquals(get, desc.get);
134 desc = Object.getOwnPropertyDescriptor(arr, '0');
135 assertTrue(desc.configurable);
136 assertTrue(desc.writable);
137 assertEquals(42, desc.value);
139 desc = Object.getOwnPropertyDescriptor(arr, '1');
140 assertTrue(desc.configurable);
141 assertTrue(desc.writable);
142 assertEquals(43, desc.value);
153 desc = Object.getOwnPropertyDescriptor(arr, '0');
154 assertFalse(desc.configurable);
155 assertTrue(desc.writable);
156 assertEquals(42, desc.value);
158 desc = Object.getOwnPropertyDescriptor(arr, '1');
159 assertFalse(desc.configurable);
160 assertTrue(desc.writable);
161 assertEquals(43, desc.value);