Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 47b18a038c9670eb469a258be402597218ae047a..75625beadd9793c869ff16848ae141080748f36c 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1784,7 +1784,7 @@ MaybeLocal<UnboundScript> ScriptCompiler::CompileUnboundInternal( |
if (!source->source_map_url.IsEmpty()) { |
source_map_url = Utils::OpenHandle(*(source->source_map_url)); |
} |
- result = i::Compiler::CompileScript( |
+ result = i::Compiler::GetSharedFunctionInfoForScript( |
str, name_obj, line_offset, column_offset, source->resource_options, |
source_map_url, isolate->native_context(), NULL, &script_data, options, |
i::NOT_NATIVES_CODE, is_module); |
@@ -2051,8 +2051,8 @@ MaybeLocal<Script> ScriptCompiler::Compile(Local<Context> context, |
i::Handle<i::SharedFunctionInfo> result; |
if (source->info->literal() != nullptr) { |
// Parsing has succeeded. |
- result = i::Compiler::CompileStreamedScript(script, source->info.get(), |
- str->length()); |
+ result = i::Compiler::GetSharedFunctionInfoForStreamedScript( |
+ script, source->info.get(), str->length()); |
} |
has_pending_exception = result.is_null(); |
if (has_pending_exception) isolate->ReportPendingMessages(); |