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

Unified Diff: test/message/nonstrict-arguments.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/non-use-strict-uhex-escape.out ('k') | test/message/nonstrict-arguments.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
+}
« no previous file with comments | « test/message/non-use-strict-uhex-escape.out ('k') | test/message/nonstrict-arguments.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698