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

Unified Diff: src/parser.cc

Issue 1442653004: Run the materialized literal reindexer on default parameter initializers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | test/mjsunit/regress/regress-554865.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 22efbac101d7586efeac9efcd826f9c2f7b67e1f..2ee9444054e12d8a54d306e6ba112dffe0a958f7 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -4148,6 +4148,7 @@ void ParserTraits::ReindexLiterals(const ParserFormalParameters& parameters) {
for (const auto p : parameters.params) {
if (p.pattern != nullptr) reindexer.Reindex(p.pattern);
+ if (p.initializer != nullptr) reindexer.Reindex(p.initializer);
}
if (parameters.has_rest) {
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-554865.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698