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.



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 or script element


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 🔒