File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ using v8::IntegrityLevel;
3535using v8::Isolate;
3636using v8::Local;
3737using v8::MaybeLocal;
38+ using v8::MemorySpan;
3839using v8::MicrotaskQueue;
3940using v8::Module;
4041using v8::ModuleRequest;
@@ -170,8 +171,10 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
170171 export_names[i] = export_name_val.As <String>();
171172 }
172173
173- module = Module::CreateSyntheticModule (isolate, url, export_names,
174- SyntheticModuleEvaluationStepsCallback);
174+ const MemorySpan<const Local<String>> span (export_names.begin (),
175+ export_names.size ());
176+ module = Module::CreateSyntheticModule (
177+ isolate, url, span, SyntheticModuleEvaluationStepsCallback);
175178 } else {
176179 ScriptCompiler::CachedData* cached_data = nullptr ;
177180 if (!args[5 ]->IsUndefined ()) {
You can’t perform that action at this time.
0 commit comments