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

Unified Diff: src/parsing/parser-base.h

Issue 2696233003: [parser] Clear scope for inner block in function with complex parameters (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index acea162a003c06bbe58299b2bbdb3e079d46ecd0..09754487ca6fe1f626479a3cad81da4963c0de8b 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -4046,6 +4046,8 @@ void ParserBase<Impl>::ParseFunctionBody(
if (inner_scope->FinalizeBlockScope() != nullptr) {
impl()->CheckConflictingVarDeclarations(inner_scope, CHECK_OK_VOID);
impl()->InsertShadowingVarBindingInitializers(inner_block);
+ } else {
+ inner_block->set_scope(nullptr);
}
inner_scope = nullptr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698