Lines Matching refs:CheckStrictMode
28 function CheckStrictMode(code, exception) { class
90 CheckStrictMode("with({}) {}", SyntaxError);
93 CheckStrictMode("function eval() {}", SyntaxError);
96 CheckStrictMode("function arguments() {}", SyntaxError);
99 CheckStrictMode("function foo(a, b, eval, c, d) {}", SyntaxError);
102 CheckStrictMode("function foo(a, b, arguments, c, d) {}", SyntaxError);
105 CheckStrictMode("var o = { set foo(eval) {} }", SyntaxError);
108 CheckStrictMode("var o = { set foo(arguments) {} }", SyntaxError);
111 CheckStrictMode("function foo(a, b, c, d, b) {}", SyntaxError);
124 CheckStrictMode("try{}catch(eval){};", SyntaxError);
127 CheckStrictMode("try{}catch(arguments){};", SyntaxError);
130 CheckStrictMode("var eval;", SyntaxError);
133 CheckStrictMode("var arguments;", SyntaxError);
150 CheckStrictMode("var x = 012");
151 CheckStrictMode("012");
152 CheckStrictMode("'Hello octal\\032'");
153 CheckStrictMode("function octal() { return 012; }");
154 CheckStrictMode("function octal() { return '\\032'; }");
225 CheckStrictMode("function strict() { eval = undefined; }", SyntaxError);
226 CheckStrictMode("function strict() { arguments = undefined; }", SyntaxError);
227 CheckStrictMode("function strict() { print(eval = undefined); }", SyntaxError);
228 CheckStrictMode("function strict() { print(arguments = undefined); }",
230 CheckStrictMode("function strict() { var x = eval = undefined; }", SyntaxError);
231 CheckStrictMode("function strict() { var x = arguments = undefined; }",
235 CheckStrictMode("function strict() { eval *= undefined; }", SyntaxError);
236 CheckStrictMode("function strict() { arguments /= undefined; }", SyntaxError);
237 CheckStrictMode("function strict() { print(eval %= undefined); }", SyntaxError);
238 CheckStrictMode("function strict() { print(arguments %= undefined); }",
240 CheckStrictMode("function strict() { var x = eval += undefined; }",
242 CheckStrictMode("function strict() { var x = arguments -= undefined; }",
244 CheckStrictMode("function strict() { eval <<= undefined; }", SyntaxError);
245 CheckStrictMode("function strict() { arguments >>= undefined; }", SyntaxError);
246 CheckStrictMode("function strict() { print(eval >>>= undefined); }",
248 CheckStrictMode("function strict() { print(arguments &= undefined); }",
250 CheckStrictMode("function strict() { var x = eval ^= undefined; }",
252 CheckStrictMode("function strict() { var x = arguments |= undefined; }",
256 CheckStrictMode("function strict() { eval++; }", SyntaxError);
257 CheckStrictMode("function strict() { arguments++; }", SyntaxError);
258 CheckStrictMode("function strict() { print(eval++); }", SyntaxError);
259 CheckStrictMode("function strict() { print(arguments++); }", SyntaxError);
260 CheckStrictMode("function strict() { var x = eval++; }", SyntaxError);
261 CheckStrictMode("function strict() { var x = arguments++; }", SyntaxError);
264 CheckStrictMode("function strict() { eval--; }", SyntaxError);
265 CheckStrictMode("function strict() { arguments--; }", SyntaxError);
266 CheckStrictMode("function strict() { print(eval--); }", SyntaxError);
267 CheckStrictMode("function strict() { print(arguments--); }", SyntaxError);
268 CheckStrictMode("function strict() { var x = eval--; }", SyntaxError);
269 CheckStrictMode("function strict() { var x = arguments--; }", SyntaxError);
272 CheckStrictMode("function strict() { ++eval; }", SyntaxError);
273 CheckStrictMode("function strict() { ++arguments; }", SyntaxError);
274 CheckStrictMode("function strict() { print(++eval); }", SyntaxError);
275 CheckStrictMode("function strict() { print(++arguments); }", SyntaxError);
276 CheckStrictMode("function strict() { var x = ++eval; }", SyntaxError);
277 CheckStrictMode("function strict() { var x = ++arguments; }", SyntaxError);
280 CheckStrictMode("function strict() { --eval; }", SyntaxError);
281 CheckStrictMode("function strict() { --arguments; }", SyntaxError);
282 CheckStrictMode("function strict() { print(--eval); }", SyntaxError);
283 CheckStrictMode("function strict() { print(--arguments); }", SyntaxError);
284 CheckStrictMode("function strict() { var x = --eval; }", SyntaxError);
285 CheckStrictMode("function strict() { var x = --arguments; }", SyntaxError);
288 CheckStrictMode("delete unqualified;", SyntaxError);
289 CheckStrictMode("function strict() { delete unqualified; }", SyntaxError);
290 CheckStrictMode("function function_name() { delete function_name; }",
292 CheckStrictMode("function strict(parameter) { delete parameter; }",
294 CheckStrictMode("function strict() { var variable; delete variable; }",
296 CheckStrictMode("var variable; delete variable;", SyntaxError);
327 CheckStrictMode("var " + word + " = 1;", SyntaxError);
328 CheckStrictMode("typeof (" + word + ");", SyntaxError);
345 CheckStrictMode("function " + word + " () {}", SyntaxError);
346 CheckStrictMode("function foo (" + word + ") {}", SyntaxError);
347 CheckStrictMode("function foo (" + word + ", " + word + ") {}", SyntaxError);
348 CheckStrictMode("function foo (a, " + word + ") {}", SyntaxError);
349 CheckStrictMode("function foo (" + word + ", a) {}", SyntaxError);
350 CheckStrictMode("function foo (a, " + word + ", b) {}", SyntaxError);
351 CheckStrictMode("var foo = function (" + word + ") {}", SyntaxError);
365 CheckStrictMode("var x = { set foo(" + word + ") {} };", SyntaxError);