Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index e7edbcd34298fa104350550d8ea502d659805c2f..012744992fe783fa072249be7f7454de7699e7ca 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -208,8 +208,8 @@ int ScopeInfo::ContextLength() { |
FunctionVariableField::decode(Flags()) == CONTEXT; |
bool has_context = context_locals > 0 || function_name_context_slot || |
scope_type() == WITH_SCOPE || |
- (scope_type() == ARROW_SCOPE && CallsEval()) || |
- (scope_type() == FUNCTION_SCOPE && CallsEval()) || |
+ (scope_type() == ARROW_SCOPE && CallsSloppyEval()) || |
+ (scope_type() == FUNCTION_SCOPE && CallsSloppyEval()) || |
scope_type() == MODULE_SCOPE; |
if (has_context) { |
return Context::MIN_CONTEXT_SLOTS + context_locals + |