Skip to main content

Module script_module

Module 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ยง

ModuleContext ๐Ÿ”’
The context required for asynchronously loading an external module script source.
ModuleHandler ๐Ÿ”’
ModuleObject ๐Ÿ”’
ModuleScript ๐Ÿ”’
ModuleSource ๐Ÿ”’
ModuleTree ๐Ÿ”’
ResolvedModule ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#specifier-resolution-record
RethrowError ๐Ÿ”’
ScriptFetchOptions ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#script-fetch-options

Enumsยง

ModuleStatus ๐Ÿ”’

Constantsยง

SLOT_MODULEPRIVATE ๐Ÿ”’

Functionsยง

EnsureModuleHooksInitialized ๐Ÿ”’ โš 
A function to register module hooks (e.g. listening on resolving modules, getting module metadata, getting script private reference and resolving dynamic import)
HostPopulateImportMeta ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-hostgetimportmetaproperties https://html.spec.whatwg.org/multipage/#hostgetimportmetaproperties
HostResolveImportedModule ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-HostLoadImportedModule https://html.spec.whatwg.org/multipage/#hostloadimportedmodule
fetch_a_module_script_graph ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-module-worker-script-tree https://html.spec.whatwg.org/multipage/#fetch-a-worklet/module-worker-script-graph
fetch_a_modulepreload_module ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-modulepreload-module-script-graph
fetch_a_single_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script
fetch_an_external_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-a-module-script-tree
fetch_inline_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-an-inline-module-script-graph
fetch_the_descendants_and_link_module_script ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#fetch-the-descendants-of-and-link-a-module-script
gen_type_error ๐Ÿ”’
host_add_ref_top_level_script ๐Ÿ”’ โš 
host_import_module_dynamically ๐Ÿ”’ โš 
https://tc39.es/ecma262/#sec-hostimportmoduledynamically https://html.spec.whatwg.org/multipage/#hostimportmoduledynamically(referencingscriptormodule,-specifier,-promisecapability)
host_release_top_level_script ๐Ÿ”’ โš 
import_meta_resolve ๐Ÿ”’ โš 
module_script_from_reference_private ๐Ÿ”’ โš 
resolve_imports_match ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#resolving-an-imports-match

Type Aliasesยง

ModuleRequest ๐Ÿ”’