diff options
Diffstat (limited to 'deps/v8/src/objects/source-text-module.h')
-rw-r--r-- | deps/v8/src/objects/source-text-module.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/objects/source-text-module.h b/deps/v8/src/objects/source-text-module.h index 57c84d833d8..7e64668a7ed 100644 --- a/deps/v8/src/objects/source-text-module.h +++ b/deps/v8/src/objects/source-text-module.h @@ -59,6 +59,11 @@ class SourceTextModule static Handle<JSModuleNamespace> GetModuleNamespace( Isolate* isolate, Handle<SourceTextModule> module, int module_request); + // Get the import.meta object of [module]. If it doesn't exist yet, it is + // created and passed to the embedder callback for initialization. + V8_EXPORT_PRIVATE static Handle<JSObject> GetImportMeta( + Isolate* isolate, Handle<SourceTextModule> module); + using BodyDescriptor = SubclassBodyDescriptor<Module::BodyDescriptor, FixedBodyDescriptor<kCodeOffset, kSize, kSize>>; |