Lines Matching full:eval
92 // Function named 'eval'.
93 CheckStrictMode("function eval() {}", SyntaxError);
98 // Function parameter named 'eval'.
99 CheckStrictMode("function foo(a, b, eval, c, d) {}", SyntaxError);
104 // Property accessor parameter named 'eval'.
105 CheckStrictMode("var o = { set foo(eval) {} }", SyntaxError);
113 // Function constructor: eval parameter name.
114 CheckFunctionConstructorStrictMode("eval");
123 // catch(eval)
124 CheckStrictMode("try{}catch(eval){};", SyntaxError);
129 // var eval
130 CheckStrictMode("var eval;", SyntaxError);
137 function foo(eval) {\
142 (function NotStrict(eval) {
223 // Assignment to eval or arguments
224 CheckStrictMode("function strict() { eval = undefined; }", SyntaxError);
226 CheckStrictMode("function strict() { print(eval = undefined); }", SyntaxError);
229 CheckStrictMode("function strict() { var x = eval = undefined; }", SyntaxError);
233 // Compound assignment to eval or arguments
234 CheckStrictMode("function strict() { eval *= undefined; }", SyntaxError);
236 CheckStrictMode("function strict() { print(eval %= undefined); }", SyntaxError);
239 CheckStrictMode("function strict() { var x = eval += undefined; }",
243 CheckStrictMode("function strict() { eval <<= undefined; }", SyntaxError);
245 CheckStrictMode("function strict() { print(eval >>>= undefined); }",
249 CheckStrictMode("function strict() { var x = eval ^= undefined; }",
254 // Postfix increment with eval or arguments
255 CheckStrictMode("function strict() { eval++; }", SyntaxError);
257 CheckStrictMode("function strict() { print(eval++); }", SyntaxError);
259 CheckStrictMode("function strict() { var x = eval++; }", SyntaxError);
262 // Postfix decrement with eval or arguments
263 CheckStrictMode("function strict() { eval--; }", SyntaxError);
265 CheckStrictMode("function strict() { print(eval--); }", SyntaxError);
267 CheckStrictMode("function strict() { var x = eval--; }", SyntaxError);
270 // Prefix increment with eval or arguments
271 CheckStrictMode("function strict() { ++eval; }", SyntaxError);
273 CheckStrictMode("function strict() { print(++eval); }", SyntaxError);
275 CheckStrictMode("function strict() { var x = ++eval; }", SyntaxError);
278 // Prefix decrement with eval or arguments
279 CheckStrictMode("function strict() { --eval; }", SyntaxError);
281 CheckStrictMode("function strict() { print(--eval); }", SyntaxError);
283 CheckStrictMode("function strict() { var x = --eval; }", SyntaxError);
320 var x = [void eval, typeof eval, +eval, -eval, ~eval, !eval];
343 eval("var x = { " + word + " : 42 };");
344 eval("var x = { get " + word + " () {} };");
345 eval("var x = { set " + word + " (value) {} };");
346 eval("var x = { get " + word + " () { 'use strict'; } };");
347 eval("var x = { set " + word + " (value) { 'use strict'; } };");
350 eval("var x = { '" + word + "' : 42 };");
351 eval("var x = { get '" + word + "' () { } };");
352 eval("var x = { set '" + word + "' (value) { } };");
353 eval("var x = { get '" + word + "' () { 'use strict'; } };");
354 eval("var x = { set '" + word + "' (value) { 'use strict'; } };");
433 eval("");
1190 eval("var eval_local = 10;");