diff options
Diffstat (limited to 'deps/v8/src/objects/source-text-module.cc')
-rw-r--r-- | deps/v8/src/objects/source-text-module.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/src/objects/source-text-module.cc b/deps/v8/src/objects/source-text-module.cc index f54df2b7ca6..f1b0c9c2c48 100644 --- a/deps/v8/src/objects/source-text-module.cc +++ b/deps/v8/src/objects/source-text-module.cc @@ -583,6 +583,16 @@ Handle<JSModuleNamespace> SourceTextModule::GetModuleNamespace( return Module::GetModuleNamespace(isolate, requested_module); } +Handle<JSObject> SourceTextModule::GetImportMeta( + Isolate* isolate, Handle<SourceTextModule> module) { + Handle<HeapObject> import_meta(module->import_meta(), isolate); + if (import_meta->IsTheHole(isolate)) { + import_meta = isolate->RunHostInitializeImportMetaObjectCallback(module); + module->set_import_meta(*import_meta); + } + return Handle<JSObject>::cast(import_meta); +} + MaybeHandle<Object> SourceTextModule::EvaluateMaybeAsync( Isolate* isolate, Handle<SourceTextModule> module) { // In the event of errored evaluation, return a rejected promise. |