Index: test/message/nonstrict-eval.js |
diff --git a/test/preparser/nonstrict-eval.js b/test/message/nonstrict-eval.js |
similarity index 80% |
rename from test/preparser/nonstrict-eval.js |
rename to test/message/nonstrict-eval.js |
index db6feda3e3467ad9e098243cef3aba9a3f08a21f..13d79031054d31eec97ec15fe009c52428658504 100644 |
--- a/test/preparser/nonstrict-eval.js |
+++ b/test/message/nonstrict-eval.js |
@@ -27,24 +27,26 @@ |
// Eval restrictions should not trigger outside of strict-mode code. |
-var eval = 42; |
-eval = eval++; |
-eval += --eval; |
-eval -= ++eval; |
-eval *= eval--; |
-function eval(eval) {}; |
-try {} catch (eval) {} |
+function foo() { |
+ var eval = 42; |
+ eval = eval++; |
+ eval += --eval; |
+ eval -= ++eval; |
+ eval *= eval--; |
+ function eval(eval) {}; |
+ try {} catch (eval) {} |
-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 eval = 42; |
-eval = eval++; |
-eval += --eval; |
-eval -= ++eval; |
-eval *= eval--; |
-function eval(eval) {}; |
-try {} catch (eval) {} |
+ var eval = 42; |
+ eval = eval++; |
+ eval += --eval; |
+ eval -= ++eval; |
+ eval *= eval--; |
+ function eval(eval) {}; |
+ try {} catch (eval) {} |
+} |