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

Unified Diff: src/compiler/ast-loop-assignment-analyzer.cc

Issue 1309813007: [es6] implement destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cache te right scope in DeclareAndInitializeVariables() 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: src/compiler/ast-loop-assignment-analyzer.cc
diff --git a/src/compiler/ast-loop-assignment-analyzer.cc b/src/compiler/ast-loop-assignment-analyzer.cc
index 70c4057e59f296fd59928df6c3017e2d66e395d2..24ec28e9a1497f347be942ef14c87b27c4b27b88 100644
--- a/src/compiler/ast-loop-assignment-analyzer.cc
+++ b/src/compiler/ast-loop-assignment-analyzer.cc
@@ -274,6 +274,8 @@ void ALAA::VisitForOfStatement(ForOfStatement* loop) {
void ALAA::VisitAssignment(Assignment* stmt) {
+ RETURN_IF_VISIT_NODE(stmt->destructuring_assignment());
+
Expression* l = stmt->target();
Visit(l);
Visit(stmt->value());

Powered by Google App Engine
This is Rietveld 408576698