Lines Matching refs:keyword
142 function testKeywordProperty(keyword) { argument
146 eval("var " + keyword + " = 42;");
153 var x = eval("({" + keyword + ": 42})");
154 assertEquals(42, x[keyword]);
155 assertEquals(42, eval("x." + keyword));
156 eval("x." + keyword + " = 37");
157 assertEquals(37, x[keyword]);
158 assertEquals(37, eval("x." + keyword));
161 var y = eval("({value : 42, get " + keyword + "(){return this.value}," +
162 " set " + keyword + "(v) { this.value = v; }})");
163 assertEquals(42, y[keyword]);
164 assertEquals(42, eval("y." + keyword));
165 eval("y." + keyword + " = 37");
166 assertEquals(37, y[keyword]);
167 assertEquals(37, eval("y." + keyword));
170 var z = eval("({\"" + keyword + "\": 42})");
171 assertEquals(42, z[keyword]);
172 assertEquals(42, eval("z." + keyword));
177 var w = eval("({" + keyword + ": test_call, was_called: false})");
178 eval("w." + keyword + "();");
184 var v = eval("({" + keyword + ": construct})");
185 var vo = eval("new v." + keyword + "()");