Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index bb7b637d4224e0764e1f72d803d46f318b9dc472..51fa09e56b56d89e787060c8868569f70cf2fd58 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1548,7 +1548,7 @@ FullCodeGenerator::EnterBlockScopeIfNeeded::EnterBlockScopeIfNeeded( |
codegen_->PrepareForBailoutForId(entry_id, NO_REGISTERS); |
needs_block_context_ = false; |
} else { |
- needs_block_context_ = scope->ContextLocalCount() > 0; |
+ needs_block_context_ = scope->NeedsContext(); |
codegen_->scope_ = scope; |
{ |
if (needs_block_context_) { |