Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index 1473b2471f59ebbd87acf6cebdbd5f3c114cfc42..52e50eaee61d11348f9ef6e355b3fd4d7499900c 100644 |
--- a/src/scopes.cc |
+++ b/src/scopes.cc |
@@ -692,6 +692,7 @@ bool Scope::HasTrivialContext() const { |
if (scope->is_eval_scope()) return false; |
if (scope->scope_inside_with_) return false; |
if (scope->ContextLocalCount() > 0) return false; |
+ if (scope->ContextGlobalCount() > 0) return false; |
} |
return true; |
} |