Index: src/pattern-rewriter.cc |
diff --git a/src/pattern-rewriter.cc b/src/pattern-rewriter.cc |
index 2319d1aaf73dd6f6a91746e490f45f7020f6fb30..949be73e295a24b941dde658f42a4168d89d5250 100644 |
--- a/src/pattern-rewriter.cc |
+++ b/src/pattern-rewriter.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "src/ast.h" |
+#include "src/messages.h" |
#include "src/parser.h" |
namespace v8 { |
@@ -61,7 +62,7 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) { |
if (descriptor_->declaration_scope->num_var_or_const() > |
kMaxNumFunctionLocals) { |
- parser->ReportMessage("too_many_variables"); |
+ parser->ReportMessage(MessageTemplate::kTooManyVariables); |
*ok_ = false; |
return; |
} |