| Index: src/parser.cc
|
| ===================================================================
|
| --- src/parser.cc (revision 2366)
|
| +++ src/parser.cc (working copy)
|
| @@ -1576,10 +1576,10 @@
|
| // to the calling function context.
|
| if (top_scope_->is_function_scope()) {
|
| // Declare the variable in the function scope.
|
| - var = top_scope_->LookupLocal(name);
|
| + var = top_scope_->LocalLookup(name);
|
| if (var == NULL) {
|
| // Declare the name.
|
| - var = top_scope_->Declare(name, mode);
|
| + 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
|
| @@ -3466,8 +3466,8 @@
|
| while (!done) {
|
| Handle<String> param_name = ParseIdentifier(CHECK_OK);
|
| if (!is_pre_parsing_) {
|
| - top_scope_->AddParameter(top_scope_->Declare(param_name,
|
| - Variable::VAR));
|
| + top_scope_->AddParameter(top_scope_->DeclareLocal(param_name,
|
| + Variable::VAR));
|
| num_parameters++;
|
| }
|
| done = (peek() == Token::RPAREN);
|
|
|