Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 17d5a461de2a4ee3f6c19d34342e84494cb44fce..cdc0adb561831ee012fdd3434d9c210828a67cca 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -4201,7 +4201,7 @@ ZoneList<Expression*>* Parser::ParseArguments(bool* ok) { |
while (!done) { |
Expression* argument = ParseAssignmentExpression(true, CHECK_OK); |
result->Add(argument, zone()); |
- if (result->length() > kMaxNumFunctionParameters) { |
+ if (result->length() > Code::kMaxArguments) { |
ReportMessageAt(scanner().location(), "too_many_arguments", |
Vector<const char*>::empty()); |
*ok = false; |
@@ -4378,7 +4378,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral(Handle<String> function_name, |
top_scope_->DeclareParameter(param_name, VAR); |
num_parameters++; |
- if (num_parameters > kMaxNumFunctionParameters) { |
+ if (num_parameters > Code::kMaxArguments) { |
ReportMessageAt(scanner().location(), "too_many_parameters", |
Vector<const char*>::empty()); |
*ok = false; |