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

Unified Diff: src/parsing/pattern-rewriter.cc

Issue 2176653003: Wrap ClassLiterals in DoExpressions instead of giving them BlockScopes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 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
Index: src/parsing/pattern-rewriter.cc
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc
index e00403135a18dc4d0309a00589fb8b8001150c4e..807ac4bc23ab61a8dc6305eefdc483a6c633ff89 100644
--- a/src/parsing/pattern-rewriter.cc
+++ b/src/parsing/pattern-rewriter.cc
@@ -393,7 +393,8 @@ void Parser::PatternRewriter::RewriteParameterScopes(Expression* expr) {
DCHECK(scope()->outer_scope()->is_function_scope());
DCHECK(scope()->calls_sloppy_eval());
- ReparentParameterExpressionScope(parser_->stack_limit(), expr, scope());
+ ReparentParameterExpressionScope(parser_->stack_limit(), expr,
+ scope()->outer_scope(), scope());
}
void Parser::PatternRewriter::VisitObjectLiteral(ObjectLiteral* pattern,

Powered by Google App Engine
This is Rietveld 408576698