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

Unified Diff: src/parser.h

Issue 1235153006: [es6] re-implement rest parameters via desugaring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More/fewer removals Created 5 years, 5 months 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
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index acad434bc318438589eab139c5d92e91ec3ff312..22214d07f1580282e3a754007f2b4f42f10faa22 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1313,7 +1313,7 @@ void ParserTraits::DeclareFormalParameter(
bool is_duplicate = false;
bool is_simple_name = pattern->IsVariableProxy();
DCHECK(parser_->allow_harmony_destructuring() || is_simple_name);
-
+ if (is_rest) parsing_state->has_rest = true;
const AstRawString* name = is_simple_name
? pattern->AsVariableProxy()->raw_name()
: parser_->ast_value_factory()->empty_string();
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698