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

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

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
Index: test/message/for-in-loop-initializers-destructuring.js
diff --git a/test/message/try-catch-lexical-conflict.js b/test/message/for-in-loop-initializers-destructuring.js
similarity index 82%
copy from test/message/try-catch-lexical-conflict.js
copy to test/message/for-in-loop-initializers-destructuring.js
index a5db29898a2bedc549041630d79b7c112fd760ae..eab8b81cf371b13c0bf44a48cb106acb1a59badf 100644
--- a/test/message/try-catch-lexical-conflict.js
+++ b/test/message/for-in-loop-initializers-destructuring.js
@@ -4,8 +4,6 @@
//
// Flags: --harmony-destructuring-bind
-"use strict";
-try {
-} catch ({x}) {
- let x;
+function f() {
+ for (var [x, y] = {} in {});
}

Powered by Google App Engine
This is Rietveld 408576698