Index: test/message/nonstrict-arguments.js |
diff --git a/test/preparser/nonstrict-arguments.js b/test/message/nonstrict-arguments.js |
similarity index 76% |
rename from test/preparser/nonstrict-arguments.js |
rename to test/message/nonstrict-arguments.js |
index 43c7e2e94086bd6323c164cd1e4d02783e2b5b84..e5ce0f9315da786628265541262834e4b00296a3 100644 |
--- a/test/preparser/nonstrict-arguments.js |
+++ b/test/message/nonstrict-arguments.js |
@@ -27,24 +27,26 @@ |
// Eval restrictions should not trigger outside of strict-mode code. |
-var arguments = 42; |
-arguments = arguments++; |
-arguments += --arguments; |
-arguments -= ++arguments; |
-arguments *= arguments--; |
-function arguments(arguments) {}; |
-try {} catch (arguments) {} |
+function foo() { |
+ var arguments = 42; |
+ arguments = arguments++; |
+ arguments += --arguments; |
+ arguments -= ++arguments; |
+ arguments *= arguments--; |
+ function arguments(arguments) {}; |
+ try {} catch (arguments) {} |
-function strict() { |
- "use strict"; |
- // Reading eval and arguments is allowed. |
- eval(arguments); |
-} |
+ function strict() { |
+ "use strict"; |
+ // Reading eval and arguments is allowed. |
+ eval(arguments); |
+ } |
-var arguments = 42; |
-arguments = arguments++; |
-arguments += --arguments; |
-arguments -= ++arguments; |
-arguments *= arguments--; |
-function arguments(arguments) {}; |
-try {} catch (arguments) {} |
+ var arguments = 42; |
+ arguments = arguments++; |
+ arguments += --arguments; |
+ arguments -= ++arguments; |
+ arguments *= arguments--; |
+ function arguments(arguments) {}; |
+ try {} catch (arguments) {} |
+} |