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

Unified Diff: src/parsing/parser.cc

Issue 2081323006: Revert of Rewrite scopes of non-simple default arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/parsing/parameter-initializer-rewriter.cc ('k') | src/parsing/pattern-rewriter.cc » ('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 bb365472c7a588e81bdd3544a68141fb1f0ad8fd..65466559b4be24c52049e3f05e4dea9a10bbe4db 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4613,12 +4613,6 @@
param_block = factory()->NewBlock(NULL, 8, true, RelocInfo::kNoPosition);
param_block->set_scope(param_scope);
descriptor.hoist_scope = scope_;
- // Pass the appropriate scope in so that PatternRewriter can appropriately
- // rewrite inner initializers of the pattern to param_scope
- descriptor.scope = param_scope;
- // Rewrite the outer initializer to point to param_scope
- RewriteParameterInitializerScope(stack_limit(), initial_value, scope_,
- param_scope);
}
{
« no previous file with comments | « src/parsing/parameter-initializer-rewriter.cc ('k') | src/parsing/pattern-rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698