Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2106)

Unified Diff: test/message/nonstrict-eval.js

Issue 1782173005: [testing] Move the last JS tests out of "preparser". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-test-preparser-2
Patch Set: Addressed comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/message/nonstrict-arguments.out ('k') | test/message/nonstrict-eval.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
+}
« no previous file with comments | « test/message/nonstrict-arguments.out ('k') | test/message/nonstrict-eval.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698