Index: src/scopes.h |
diff --git a/src/scopes.h b/src/scopes.h |
index 6c976d90bd666f533381dd419a2cba97abcac110..25c090c9a503085bd47eb51ba042b5abe33ccfcf 100644 |
--- a/src/scopes.h |
+++ b/src/scopes.h |
@@ -357,9 +357,10 @@ class Scope: public ZoneObject { |
bool NeedsHomeObject() const { |
return scope_uses_super_property_ || |
- (scope_calls_eval_ && (IsConciseMethod(function_kind()) || |
- IsAccessorFunction(function_kind()) || |
- IsClassConstructor(function_kind()))); |
+ ((scope_calls_eval_ || inner_scope_calls_eval_) && |
+ (IsConciseMethod(function_kind()) || |
+ IsAccessorFunction(function_kind()) || |
+ IsClassConstructor(function_kind()))); |
} |
const Scope* NearestOuterEvalScope() const { |