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

Unified Diff: src/ast-literal-reindexer.cc

Issue 1309813007: [es6] implement destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: An implementation 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/ast-literal-reindexer.cc
diff --git a/src/ast-literal-reindexer.cc b/src/ast-literal-reindexer.cc
index 5987399f9742ce8ff1bcd3604cef44cd5fc51102..0be4382f096ffcc7e735c0e81f8a3a6423fe5d6d 100644
--- a/src/ast-literal-reindexer.cc
+++ b/src/ast-literal-reindexer.cc
@@ -255,6 +255,11 @@ void AstLiteralReindexer::VisitClassLiteral(ClassLiteral* node) {
}
+void AstLiteralReindexer::VisitAssignmentPattern(AssignmentPattern* node) {
+ Visit(node->pattern());
+}
+
+
void AstLiteralReindexer::VisitObjectLiteral(ObjectLiteral* node) {
UpdateIndex(node);
for (int i = 0; i < node->properties()->length(); i++) {

Powered by Google App Engine
This is Rietveld 408576698