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

Unified Diff: src/parsing/parser.cc

Issue 1864553002: [destructuring] don't attempt to visit contents of FunctionLiterals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/ast/ast-expression-visitor.cc ('k') | test/mjsunit/es6/regress/regress-594084.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 338d5dccdc761bfde44941b89fc060bd31368dd4..a7a1e8f7870d9ef6c72fc38a0f5f791d009f00da 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4389,7 +4389,7 @@ class InitializerRewriter : public AstExpressionVisitor {
public:
InitializerRewriter(uintptr_t stack_limit, Expression* root, Parser* parser,
Scope* scope)
- : AstExpressionVisitor(stack_limit, root),
+ : AstExpressionVisitor(stack_limit, root, AstExpressionVisitor::Shallow),
parser_(parser),
scope_(scope) {}
« no previous file with comments | « src/ast/ast-expression-visitor.cc ('k') | test/mjsunit/es6/regress/regress-594084.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698