Module script::script_module
source · Expand description
The script module mod contains common traits and structs
related to type=module
for script thread or worker threads.
Structs
- The context required for asynchronously loading an external module script source.
Enums
- Identity for a module which will be used to retrieve the module when we’d like to get it from module map.
- The owner of the module It can be
worker
orscript
element
Functions
- A function to register module hooks (e.g. listening on resolving modules, getting module metadata, getting script private reference and resolving dynamic import)
- gen_type_error 🔒 ⚠