| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index a01cf0f1d5742a1f555fcc399c8a306c340476b4..64f409acff0fadfd42c10ae4126c59b9e7a5b965 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -5301,7 +5301,7 @@ bool JSObject::ReferencesObject(Object* obj) {
|
| if (context->has_extension() && !context->IsCatchContext()) {
|
| // With harmony scoping, a JSFunction may have a global context.
|
| // TODO(mvstanton): walk into the ScopeInfo.
|
| - if (FLAG_harmony_scoping && context->IsGlobalContext()) {
|
| + if (FLAG_harmony_scoping && context->IsScriptContext()) {
|
| return false;
|
| }
|
|
|
|
|