?
u
/
Intrinsic Name | Global Name | ECMAScript Language Association |
---|---|---|
ModuleSource |
The ModuleSource |
|
Module |
The Module |
In addition to the fields defined in
Field Name | Value Type | Meaning |
---|---|---|
... | ||
[[ModuleInstance]] |
An instance of a |
A Module Instance or |
A Module Source Record is used to represent information about a module source that was defined from ECMAScript source text (
Field Name | Value Type | Meaning |
---|---|---|
[[ECMAScriptCode]] |
a |
The result of parsing the source text of this module using |
[[ImportEntries]] |
a |
A |
[[LocalExportEntries]] |
a |
A |
[[IndirectExportEntries]] |
a |
A export * as namespace declarations.
|
[[StarExportEntries]] |
a |
A export * declarations that occur within the module, not including export * as namespace declarations.
|
[[HasTLA]] | a Boolean |
Whether this module source is individually asynchronous. Having an asynchronous dependency does not mean this field is |
[[RequestedModules]] |
a |
A |
[[HostDefined]] |
anything (default value is |
Field reserved for use by |
The abstract operation ParseModuleSource takes argument sourceText (ECMAScript source text) and returns a
await
.The ModuleSource
When the ModuleSource
function is called with argument sourceText, the following steps are taken:
The ModuleSource
The initial value of
This property has the attributes { [[Writable]]:
The ModuleSource prototype object:
The initial value of ModuleSource.prototype.constructor
is
The initial value of the
This property has the attributes { [[Writable]]:
ModuleSource instances are
Internal Slot | Type | Description |
---|---|---|
[[ModuleSource]] | The |
The abstract operation CreateModuleRecord takes argument moduleSource (a
The abstract operation ResolveModuleRecordDependency takes arguments moduleRecord (a
The
An implementation of HostImportModuleRecordDynamically must conform to the following requirements:
The abstract operation FinishModuleDynamicImport takes arguments moduleRecord (a import()
The Module
When the Module
function is called with the arguments moduleSource, referral, importHook and importMeta, the following steps are taken:
The Module
The initial value of
This property has the attributes { [[Writable]]:
The Module prototype object:
The initial value of Module.prototype.constructor
is
Module.prototype.source
is an
The initial value of the
This property has the attributes { [[Writable]]:
Module instances are
Internal Slot | Type | Description |
---|---|---|
[[Module]] | The |
|
[[ModuleSourceInstance]] | ModuleSource Instance or |
The |
[[ImportHook]] | a callable Object | The callable Object associated to the [[Module]] record to resolve module dependencies. |
fs
module or any built-in module in the future.