Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 02687312e03b8e8f5b63caab8d805b479219a3e9..d22e1f35e6c48f049bc623272b2cfe7ab5658cf2 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -514,8 +514,7 @@ bool CompileUnoptimizedCode(CompilationInfo* info) { |
void InstallSharedScopeInfo(CompilationInfo* info, |
Handle<SharedFunctionInfo> shared) { |
- Handle<ScopeInfo> scope_info = |
- ScopeInfo::Create(info->isolate(), info->zone(), info->scope()); |
+ Handle<ScopeInfo> scope_info = info->scope()->GetScopeInfo(info->isolate()); |
shared->set_scope_info(*scope_info); |
} |