Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index a5b12f8144993161d1b0865b9dbb1ceedc82d74b..6da9f4961a2c9985a812c1f1ec98722746e9355e 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->IsGlobalContext()) { |
+ while (!context->IsNativeContext()) { |
if (context->IsWithContext()) { |
Scope* with_scope = new(zone) Scope(current_scope, |
WITH_SCOPE, |