Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index e3a62c1ab2b93a5679f5201191bfe9d82ee26f97..a80d7e56c2c8255bd24ad9362a00b028f0cd9a39 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -14,6 +14,7 @@ |
#include "src/codegen.h" |
#include "src/compiler.h" |
#include "src/messages.h" |
+#include "src/parameter-initializer-rewriter.h" |
#include "src/preparser.h" |
#include "src/runtime/runtime.h" |
#include "src/scanner-character-streams.h" |
@@ -4047,6 +4048,10 @@ void ParserTraits::ParseArrowFunctionFormalParameters( |
DCHECK(!assignment->is_compound()); |
initializer = assignment->value(); |
expr = assignment->target(); |
+ |
+ // TODO(adamk): Only call this if necessary. |
+ RewriteParameterInitializerScope(parser_->stack_limit(), initializer, |
+ parser_->scope_, parameters->scope); |
} |
AddFormalParameter(parameters, expr, initializer, is_rest); |