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

Unified Diff: test/message/for-in-loop-initializers-destructuring.out

Issue 1471973003: Disallow destructuring in legacy sloppy for-in loop parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix copyright on test Created 5 years, 1 month 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
« src/preparser.cc ('K') | « test/message/for-in-loop-initializers-destructuring.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/for-in-loop-initializers-destructuring.out
diff --git a/test/message/for-in-loop-initializers-destructuring.out b/test/message/for-in-loop-initializers-destructuring.out
new file mode 100644
index 0000000000000000000000000000000000000000..9dbda2c639d400d98a415b667d542cf822fc3cf0
--- /dev/null
+++ b/test/message/for-in-loop-initializers-destructuring.out
@@ -0,0 +1,4 @@
+*%(basename)s:8: SyntaxError: for-in loop variable declaration may not have an initializer.
+ for (var [x, y] = {} in {});
+ ^^^^^^
+SyntaxError: for-in loop variable declaration may not have an initializer.
« src/preparser.cc ('K') | « test/message/for-in-loop-initializers-destructuring.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698