Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index acdce8d1cf294af4b986d5b741cb5a4ef7f0b8d4..67837020bb50d2d08fe244b967190a6cd5890cbd 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -294,9 +294,8 @@ Object* DeclareEvalHelper(Isolate* isolate, Handle<String> name, |
DCHECK(context->IsBlockContext()); |
object = isolate->factory()->NewJSObject( |
isolate->context_extension_function()); |
- Handle<HeapObject> extension = |
- isolate->factory()->NewSloppyBlockWithEvalContextExtension( |
- handle(context->scope_info()), object); |
+ Handle<HeapObject> extension = isolate->factory()->NewContextExtension( |
+ handle(context->scope_info()), object); |
context->set_extension(*extension); |
} else { |
object = handle(context->extension_object(), isolate); |