Lines Matching refs:arguments
49 for (var i = 0; i < arguments.length; i ++) {
50 args[i] = arguments[i];
53 args[arguments.length] = "";
58 args[arguments.length] = "'use strict';";
95 // Function named 'arguments'.
96 CheckStrictMode("function arguments() {}", SyntaxError);
101 // Function parameter named 'arguments'.
102 CheckStrictMode("function foo(a, b, arguments, c, d) {}", SyntaxError);
107 // Property accessor parameter named 'arguments'.
108 CheckStrictMode("var o = { set foo(arguments) {} }", SyntaxError);
116 // Function constructor: arguments parameter name.
117 CheckFunctionConstructorStrictMode("arguments");
126 // catch(arguments)
127 CheckStrictMode("try{}catch(arguments){};", SyntaxError);
132 // var arguments
133 CheckStrictMode("var arguments;", SyntaxError);
223 // Assignment to eval or arguments
225 CheckStrictMode("function strict() { arguments = undefined; }", SyntaxError);
227 CheckStrictMode("function strict() { print(arguments = undefined); }",
230 CheckStrictMode("function strict() { var x = arguments = undefined; }",
233 // Compound assignment to eval or arguments
235 CheckStrictMode("function strict() { arguments /= undefined; }", SyntaxError);
237 CheckStrictMode("function strict() { print(arguments %= undefined); }",
241 CheckStrictMode("function strict() { var x = arguments -= undefined; }",
244 CheckStrictMode("function strict() { arguments >>= undefined; }", SyntaxError);
247 CheckStrictMode("function strict() { print(arguments &= undefined); }",
251 CheckStrictMode("function strict() { var x = arguments |= undefined; }",
254 // Postfix increment with eval or arguments
256 CheckStrictMode("function strict() { arguments++; }", SyntaxError);
258 CheckStrictMode("function strict() { print(arguments++); }", SyntaxError);
260 CheckStrictMode("function strict() { var x = arguments++; }", SyntaxError);
262 // Postfix decrement with eval or arguments
264 CheckStrictMode("function strict() { arguments--; }", SyntaxError);
266 CheckStrictMode("function strict() { print(arguments--); }", SyntaxError);
268 CheckStrictMode("function strict() { var x = arguments--; }", SyntaxError);
270 // Prefix increment with eval or arguments
272 CheckStrictMode("function strict() { ++arguments; }", SyntaxError);
274 CheckStrictMode("function strict() { print(++arguments); }", SyntaxError);
276 CheckStrictMode("function strict() { var x = ++arguments; }", SyntaxError);
278 // Prefix decrement with eval or arguments
280 CheckStrictMode("function strict() { --arguments; }", SyntaxError);
282 CheckStrictMode("function strict() { print(--arguments); }", SyntaxError);
284 CheckStrictMode("function strict() { var x = --arguments; }", SyntaxError);
321 var y = [void arguments, typeof arguments,
322 +arguments, -arguments, ~arguments, !arguments];
356 // Function names and arguments, strict and non-strict contexts
365 // Function names and arguments when the body is strict
1009 return [a, b, arguments[0], arguments[1]];
1015 return [a, b, arguments[0], arguments[1]];
1053 assertThrows(function() { strict.arguments; }, TypeError);
1055 assertThrows(function() { strict.arguments = 42; }, TypeError);
1059 assertThrows(function() { another.arguments; }, TypeError);
1061 assertThrows(function() { another.arguments = 42; }, TypeError);
1065 assertThrows(function() { third.arguments; }, TypeError);
1067 assertThrows(function() { third.arguments = 42; }, TypeError);
1070 CheckPillDescriptor(strict, "arguments");
1072 CheckPillDescriptor(another, "arguments");
1074 CheckPillDescriptor(third, "arguments");
1083 assertThrows(function() { TheClass.arguments; }, TypeError);
1102 return arguments;
1119 return arguments;