archives

« Bugzilla Issues Index

#3088 — Clarification in 26.3.3.8


In this section, there is a 'Note' that says the following when discussing the Reflect.prototype.import method:

Invoking the import method is the dynamic equivalent (when combined with normalization) of:
ImportDeclaration :: import ModuleSpecifier ;

This is misleading because it suggests that `ImportDeclaration :: import ModuleSpecifier ;` has the same semantics as Reflect.p.import -- but this is not true.

For example, one difference is that the ImportDeclaration semantics do not evaluate the module + all dependencies at runtime.

Can we clarify this note a bit to make it more clear that this API is similar, but not identical, to the referenced ImportDeclaration semantics?


concerns old module spec.