This updates the dynamic import form from import(specifier, { phase: source }) to import.source(specifier), as per @rbuckton's suggestion.
Initially I thought this would be a meta property, but meta properties are values that can be assigned to variables, while dynamic import calls are explicitly not assignable functions, so it's a variation of the ImportCall production instead.
The overall spec changes work out fairly straightforwardly in line with the current phase structures and attributes refactorings of dynamic import.
This updates the dynamic import form from
import(specifier, { phase: source })
toimport.source(specifier)
, as per @rbuckton's suggestion.Initially I thought this would be a meta property, but meta properties are values that can be assigned to variables, while dynamic import calls are explicitly not assignable functions, so it's a variation of the
ImportCall
production instead.The overall spec changes work out fairly straightforwardly in line with the current phase structures and attributes refactorings of dynamic import.
Resolves https://github.com/tc39/proposal-import-reflection/issues/40.