Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index 15ee29f9fcae96624189ccda06e77edc839b6fa4..b9dea2252e7f615301811756092688d31d8eb0ba 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -74,7 +74,8 @@ Handle<ScopeInfo> ScopeInfo::Create(Scope* scope, Zone* zone) { |
+ parameter_count + stack_local_count + 2 * context_local_count |
+ (has_function_name ? 2 : 0); |
- Handle<ScopeInfo> scope_info = FACTORY->NewScopeInfo(length); |
+ Factory* factory = Isolate::Current()->factory(); |
+ Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); |
// Encode the flags. |
int flags = TypeField::encode(scope->type()) | |