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

Unified Diff: test/message/nonstrict-with.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-eval.out ('k') | test/message/nonstrict-with.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/nonstrict-with.js
diff --git a/test/preparser/nonstrict-with.js b/test/message/nonstrict-with.js
similarity index 92%
rename from test/preparser/nonstrict-with.js
rename to test/message/nonstrict-with.js
index 17f0c930a6c0df6f8abbfba97bd9ccc38b572a02..f6e39c9c0ec522b1b746e7f936fa552b57dd69bb 100644
--- a/test/preparser/nonstrict-with.js
+++ b/test/message/nonstrict-with.js
@@ -28,13 +28,15 @@
// The with statement is allowed in non-strict code, and even around
// strict code.
-with ({}) {}
+function foo() {
+ with ({}) {}
-with ({x : 42}) {
- var foo = function () {
- "use strict";
- return x;
- };
-}
+ with ({x : 42}) {
+ var foo = function () {
+ "use strict";
+ return x;
+ };
+ }
-with ({}) {}
+ with ({}) {}
+}
« no previous file with comments | « test/message/nonstrict-eval.out ('k') | test/message/nonstrict-with.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698