Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index db2ccb29af6e12938913b30c24d7a6b1ff1aef37..587bbfece71e80a216de759a2201d5ab00a0ca3d 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -59,12 +59,12 @@ static Handle<JSFunction> Compile(const char* source) { |
Isolate* isolate = CcTest::i_isolate(); |
Handle<String> source_code = isolate->factory()->NewStringFromUtf8( |
CStrVector(source)).ToHandleChecked(); |
- Handle<SharedFunctionInfo> shared_function = Compiler::CompileScript( |
+ Handle<SharedFunctionInfo> shared = Compiler::GetSharedFunctionInfoForScript( |
source_code, Handle<String>(), 0, 0, v8::ScriptOriginOptions(), |
Handle<Object>(), Handle<Context>(isolate->native_context()), NULL, NULL, |
v8::ScriptCompiler::kNoCompileOptions, NOT_NATIVES_CODE, false); |
return isolate->factory()->NewFunctionFromSharedFunctionInfo( |
- shared_function, isolate->native_context()); |
+ shared, isolate->native_context()); |
} |