Background explanatory material for this specification can be found in the tc39/proposal-import-meta repository. See also the issues list and the HTML integration spec that builds on top of the below JavaScript specification.
Field Name | Value Type | Meaning |
---|---|---|
[[Realm]] |
|
The |
[[Environment]] |
|
The |
[[Namespace]] |
Object | |
The Module Namespace Object ( |
[[Status]] | String |
Initially "uninstantiated" . Can become "instantiating" , "instantiated" , "evaluating" , "evaluated" , or "errored" as the module progresses throughout its lifecycle.
|
[[ErrorCompletion]] |
An |
A completion of type "errored" . Otherwise |
[[Meta]] | Object | |
An object exposed through the import.meta meta property. It is |
[[HostDefined]] |
Any, default value is |
Field reserved for use by host environments that need to associate additional information with a module. |
HostGetImportMetaProperties is an implementation-defined abstract operation that allows
hosts to provide property keys and values for the object returned from import.meta
.
The implementation of HostGetImportMetaProperties must conform to the following requirements:
The default implementation of HostGetImportMetaProperties is to return a new empty
HostFinalizeImportMeta is an implementation-defined abstract operation that allows
hosts to perform any extraordinary operations to prepare the object returned from
import.meta
.
Most hosts will be able to simply define
The implementation of HostFinalizeImportMeta must conform to the following requirements:
The default implementation of HostFinalizeImportMeta is to do nothing.