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

Unified Diff: src/typing-asm.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/typing-asm.cc
diff --git a/src/typing-asm.cc b/src/typing-asm.cc
index 281491d638ad9696352e7632c8cdaa9d1bff922f..0c07b197f8c1c86aaf1386c7f385c610b2af0837 100644
--- a/src/typing-asm.cc
+++ b/src/typing-asm.cc
@@ -500,6 +500,11 @@ void AsmTyper::VisitRegExpLiteral(RegExpLiteral* expr) {
}
+void AsmTyper::VisitAssignmentPattern(AssignmentPattern* expr) {
+ Visit(expr->expression());
+}
+
+
void AsmTyper::VisitObjectLiteral(ObjectLiteral* expr) {
if (in_function_) {
FAIL(expr, "object literal in function");
« src/preparser.h ('K') | « src/prettyprinter.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698