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

Unified Diff: src/parser.cc

Issue 1225413005: [es6] Check declaration conflicts between non-simple parameters and the function body (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased 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 | « no previous file | src/scopes.cc » ('j') | src/scopes.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 2b3f482a265c17e99d4202fa2bb798cc4972a0bd..6a944c26ff1b09e8665d34fbee1d33758b4532e2 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -4432,6 +4432,7 @@ ZoneList<Statement*>* Parser::ParseEagerFunctionBody(
inner_scope->set_end_position(scanner()->location().end_pos);
inner_scope = inner_scope->FinalizeBlockScope();
inner_block->set_scope(inner_scope);
+ if (inner_scope) CheckConflictingVarDeclarations(inner_scope, CHECK_OK);
adamk 2015/07/15 21:12:30 CHECK_OK shouldn't be used in a single-statement i
rossberg 2015/07/16 14:26:40 Done.
}
return result;
« no previous file with comments | « no previous file | src/scopes.cc » ('j') | src/scopes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698