| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 0fd806cdbd6a2e039f818ab94e052dc7864bf718..9d414dc70d2aa542cb9771c58a7bd4f60745157e 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -1769,7 +1769,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);
|
| @@ -2036,8 +2036,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();
|
|
|