#include <ModuleLoader.h>
|
| static bool | MetadataHook (JSContext *cx, JS::HandleValue privateValue, JS::HandleObject metaObject) noexcept |
| | This is only executed once per module. More...
|
| |
| static JSObject * | ResolveHook (JSContext *cx, JS::HandleValue referencingPrivate, JS::HandleObject moduleRequest) noexcept |
| |
| static bool | DynamicImportHook (JSContext *cx, JS::HandleValue referencingPrivate, JS::HandleObject moduleRequest, JS::HandleObject promise) noexcept |
| |
◆ AllowModuleFunc
◆ RegistryType
◆ ModuleLoader() [1/3]
◆ ModuleLoader() [2/3]
◆ ModuleLoader() [3/3]
◆ ~ModuleLoader()
| Script::ModuleLoader::~ModuleLoader |
( |
| ) |
|
◆ DynamicImportHook()
| bool Script::ModuleLoader::DynamicImportHook |
( |
JSContext * |
cx, |
|
|
JS::HandleValue |
referencingPrivate, |
|
|
JS::HandleObject |
moduleRequest, |
|
|
JS::HandleObject |
promise |
|
) |
| |
|
staticprivatenoexcept |
◆ LoadModule()
Load the specified module and all module it imports recursively.
- Parameters
-
| rq | globalThis is taken from this Script::Request. |
| modulePath | The path to the file which should be loaded as a module. |
- Returns
- A range of futures. The compilation of the first future is already started. The evaluation of the subsequent futures start once the module file is edited.
◆ MetadataHook()
| bool Script::ModuleLoader::MetadataHook |
( |
JSContext * |
cx, |
|
|
JS::HandleValue |
privateValue, |
|
|
JS::HandleObject |
metaObject |
|
) |
| |
|
staticprivatenoexcept |
This is only executed once per module.
Following accesses of import.meta evaluate to the same object.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ResolveHook()
| JSObject * Script::ModuleLoader::ResolveHook |
( |
JSContext * |
cx, |
|
|
JS::HandleValue |
referencingPrivate, |
|
|
JS::HandleObject |
moduleRequest |
|
) |
| |
|
staticprivatenoexcept |
◆ m_AllowModule
◆ m_Registry
The documentation for this class was generated from the following files:
- /home/jenkins/jenkins/workspace/technical-docs/source/scriptinterface/ModuleLoader.h
- /home/jenkins/jenkins/workspace/technical-docs/source/scriptinterface/ModuleLoader.cpp