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

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

Issue 2269603002: Always immediately propagate flags outwards rather than relying on PropagateScopeInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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
« src/ast/scopes.h ('K') | « src/ast/scopes.cc ('k') | 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 e629ef2cbe588b80dbbdbdd10d7b31ff634ed8d5..a5ebacb63fdd68d8bd4419f8954a4b74ad5c8076 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -3460,8 +3460,9 @@ ParserBase<Traits>::ParseArrowFunctionLiteral(
if (peek() == Token::LBRACE) {
// Multiple statement body
Consume(Token::LBRACE);
- bool is_lazily_parsed =
- (mode() == PARSE_LAZILY && scope()->AllowsLazyParsing());
+ DCHECK_EQ(scope(), formal_parameters.scope);
+ bool is_lazily_parsed = (mode() == PARSE_LAZILY &&
+ formal_parameters.scope->AllowsLazyParsing());
if (is_lazily_parsed) {
body = this->NewStatementList(0, zone());
this->SkipLazyFunctionBody(&materialized_literal_count,
« src/ast/scopes.h ('K') | « src/ast/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698