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 ({}) {} |
+} |