| Index: src/scopes.cc
|
| diff --git a/src/scopes.cc b/src/scopes.cc
|
| index 6da9f4961a2c9985a812c1f1ec98722746e9355e..a5b12f8144993161d1b0865b9dbb1ceedc82d74b 100644
|
| --- a/src/scopes.cc
|
| +++ b/src/scopes.cc
|
| @@ -215,7 +215,7 @@ Scope* Scope::DeserializeScopeChain(Context* context, Scope* global_scope,
|
| Scope* current_scope = NULL;
|
| Scope* innermost_scope = NULL;
|
| bool contains_with = false;
|
| - while (!context->IsNativeContext()) {
|
| + while (!context->IsGlobalContext()) {
|
| if (context->IsWithContext()) {
|
| Scope* with_scope = new(zone) Scope(current_scope,
|
| WITH_SCOPE,
|
|
|