Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2021-01-30 15:30:19 +0300
committerMichaël Zasso <targos@protonmail.com>2021-03-15 17:56:11 +0300
commit8f5cce6862e4e1d1d6ba86b43e9ac3760088a3c2 (patch)
treec0e50ec318f4643df1874fc28854bd3e2f6696c5 /src/module_wrap.cc
parent64d5be25ab282cf3f825e7068a94bbba8cddce95 (diff)
src: use non-deprecated V8 module APIs
PR-URL: https://github.com/nodejs/node/pull/37587 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r--src/module_wrap.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index 1fb2ea43307..532d7382dfd 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -187,7 +187,8 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
}
Local<String> source_text = args[2].As<String>();
- ScriptOrigin origin(url,
+ ScriptOrigin origin(isolate,
+ url,
line_offset,
column_offset,
true, // is cross origin
@@ -539,7 +540,8 @@ MaybeLocal<Module> ModuleWrap::ResolveModuleCallback(
static MaybeLocal<Promise> ImportModuleDynamically(
Local<Context> context,
Local<ScriptOrModule> referrer,
- Local<String> specifier) {
+ Local<String> specifier,
+ Local<FixedArray> import_assertions) {
Isolate* isolate = context->GetIsolate();
Environment* env = Environment::GetCurrent(context);
if (env == nullptr) {