|
|
|
2. Let tagFunc tagRef ). 3. Let thisCall 4. Let tailCall be ( thisCall ). 5. Return ? tagFunc , tagRef , , tailCall ).
:
new
.
target 1. Return ().
:
import
.
meta 1. Let module (). 2. : module . 3. Let importMeta be module .[[ImportMeta]]. 4. If importMeta is empty , then a. Set importMeta to ! ( null ). b. Let importMetaValues be ! ( module ). c. For each { [[Key]], [[Value]] } p of importMetaValues , do i. Perform ! ( importMeta , p .[[Key]], p .[[Value]]). d. Perform ! importMeta , module ). e. Set module .[[ImportMeta]] to importMeta . f. Return importMeta . 5. Else, a. : importMeta ) is Object. b. Return importMeta . abstract operation HostGetImportMetaProperties takes argument moduleRecord (a allows hosts to provide property keys and values for the object returned from import.meta import.meta . The implementation of HostGetImportMetaProperties must conform to the following requirements: It must return a , whose values are all Records with two fields, [[Key]] and [[Value]]. 's [[Key]] field must be a property key, i.e., must return true when applied to it. 's [[Value]] field must be an ECMAScript value. It must always complete normally (i.e., not return an The default implementation of HostGetImportMetaProperties is to return a new empty abstract operation HostFinalizeImportMeta takes arguments importMeta (an Object) and moduleRecord ). It allows hosts to perform any extraordinary operations to prepare the object returned from import.meta import.meta . 13.3.12 Meta Properties 13.3.12.1 Runtime Semantics: Evaluation 13.3.12.1.1 HostGetImportMetaProperties ( moduleRecord ) 13.3.12.1.2 HostFinalizeImportMeta ( importMeta , moduleRecord ) 330 |