| Index: src/scopeinfo.cc
|
| diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc
|
| index 0f36234701c06e903cf07c6aa05e1f1133551b3d..c9d91e1e2daae67e138c02978223d29940d653ce 100644
|
| --- a/src/scopeinfo.cc
|
| +++ b/src/scopeinfo.cc
|
| @@ -53,7 +53,7 @@ Handle<ScopeInfo> ScopeInfo::Create(Scope* scope) {
|
| FunctionVariableInfo function_name_info;
|
| VariableMode function_variable_mode;
|
| if (scope->is_function_scope() && scope->function() != NULL) {
|
| - Variable* var = scope->function()->var();
|
| + Variable* var = scope->function()->proxy()->var();
|
| if (!var->is_used()) {
|
| function_name_info = UNUSED;
|
| } else if (var->IsContextSlot()) {
|
| @@ -129,8 +129,8 @@ Handle<ScopeInfo> ScopeInfo::Create(Scope* scope) {
|
| // If present, add the function variable name and its index.
|
| ASSERT(index == scope_info->FunctionNameEntryIndex());
|
| if (has_function_name) {
|
| - int var_index = scope->function()->var()->index();
|
| - scope_info->set(index++, *scope->function()->name());
|
| + int var_index = scope->function()->proxy()->var()->index();
|
| + scope_info->set(index++, *scope->function()->proxy()->name());
|
| scope_info->set(index++, Smi::FromInt(var_index));
|
| ASSERT(function_name_info != STACK ||
|
| (var_index == scope_info->StackLocalCount() &&
|
|
|