Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 400e15e5c97ddb4fc132baba1b630e7414953787..0a02a877495b35d543b67b5621ff99f80962913f 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -102,14 +102,11 @@ Handle<PrototypeInfo> Factory::NewPrototypeInfo() { |
return result; |
} |
- |
-Handle<SloppyBlockWithEvalContextExtension> |
-Factory::NewSloppyBlockWithEvalContextExtension( |
- Handle<ScopeInfo> scope_info, Handle<JSObject> extension) { |
+Handle<ContextExtension> Factory::NewContextExtension( |
+ Handle<ScopeInfo> scope_info, Handle<Object> extension) { |
DCHECK(scope_info->is_declaration_scope()); |
- Handle<SloppyBlockWithEvalContextExtension> result = |
- Handle<SloppyBlockWithEvalContextExtension>::cast( |
- NewStruct(SLOPPY_BLOCK_WITH_EVAL_CONTEXT_EXTENSION_TYPE)); |
+ Handle<ContextExtension> result = |
+ Handle<ContextExtension>::cast(NewStruct(CONTEXT_EXTENSION_TYPE)); |
result->set_scope_info(*scope_info); |
result->set_extension(*extension); |
return result; |