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

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 or script 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)
https://tc39.es/ecma262/#sec-hostgetimportmetaproperties https://html.spec.whatwg.org/multipage/#hostgetimportmetaproperties
https://tc39.github.io/ecma262/#sec-hostresolveimportedmodule https://html.spec.whatwg.org/multipage/#hostresolveimportedmodule(referencingscriptormodule%2C-specifier)
https://html.spec.whatwg.org/multipage/#fetch-a-module-script-tree
https://html.spec.whatwg.org/multipage/#fetch-an-inline-module-script-graph
https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script
gen_type_error 🔒