| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 941cef5 commit 4782818
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,6 +35,7 @@ using v8::IntegrityLevel; | |||
| 35 | 35 | using v8::Isolate; | |
| 36 | 36 | using v8::Local; | |
| 37 | 37 | using v8::MaybeLocal; | |
| 38 | + using v8::MemorySpan; | ||
| 38 | 39 | using v8::MicrotaskQueue; | |
| 39 | 40 | using v8::Module; | |
| 40 | 41 | using v8::ModuleRequest; | |
@@ -170,8 +171,10 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) { | |||
| 170 | 171 | export_names[i] = export_name_val.As<String>(); | |
| 171 | 172 | } | |
| 172 | 173 | ||
| 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); | ||
| 175 | 178 | } else { | |
| 176 | 179 | ScriptCompiler::CachedData* cached_data = nullptr; | |
| 177 | 180 | if (!args[5]->IsUndefined()) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments