| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index e2f8da650de94742acb39f1259f8b03dba3b66d0..fc44741914b642a5988baa81b664d38f84dce572 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -1310,7 +1310,7 @@ VariableProxy* Parser::Declare(Handle<String> name,
|
| var = top_scope_->LocalLookup(name);
|
| if (var == NULL) {
|
| // Declare the name.
|
| - var = top_scope_->DeclareLocal(name, mode, Scope::VAR_OR_CONST);
|
| + var = top_scope_->DeclareLocal(name, mode);
|
| } else {
|
| // The name was declared before; check for conflicting
|
| // re-declarations. If the previous declaration was a const or the
|
| @@ -3573,10 +3573,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral(Handle<String> var_name,
|
| reserved_loc = scanner().location();
|
| }
|
|
|
| - Variable* parameter = top_scope_->DeclareLocal(param_name,
|
| - Variable::VAR,
|
| - Scope::PARAMETER);
|
| - top_scope_->AddParameter(parameter);
|
| + top_scope_->DeclareParameter(param_name);
|
| num_parameters++;
|
| if (num_parameters > kMaxNumFunctionParameters) {
|
| ReportMessageAt(scanner().location(), "too_many_parameters",
|
|
|