From fe8cd53052af8e8a9d156df9175bd09b2597908d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 26 Sep 2023 14:42:18 +0200 Subject: [PATCH] src: use non-deprecated version of CreateSyntheticModule Refs: https://github.com/v8/v8/commit/8ff02b7d93480a18c315ff88b9e460fe2b6fb2ca --- src/module_wrap.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 9f40d679d1e..8da045cfed2 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -35,6 +35,7 @@ using v8::IntegrityLevel; using v8::Isolate; using v8::Local; using v8::MaybeLocal; +using v8::MemorySpan; using v8::MicrotaskQueue; using v8::Module; using v8::ModuleRequest; @@ -168,7 +169,8 @@ void ModuleWrap::New(const FunctionCallbackInfo& args) { export_names[i] = export_name_val.As(); } - module = Module::CreateSyntheticModule(isolate, url, export_names, + const MemorySpan> span(export_names.begin(), export_names.size()); + module = Module::CreateSyntheticModule(isolate, url, span, SyntheticModuleEvaluationStepsCallback); } else { ScriptCompiler::CachedData* cached_data = nullptr;