You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import assertions have recently been changed to be "import attributes", with the following changes:
the keyword is now with instead of assert
the property in the dynamic import options bag is now with
there are fewer restrictions about what a host can do with the given attributes
Additionally, the old syntax is still specified but marked as "normative optional, deprecated", and there is an optional fallback to lookup the assert property in the dynamic import options bag if with is undefined.
I don't think we can test (3), but for (1) and (2) we can copy the existing tests replacing assert with with. Additionally, we may need a test for dynamic import with both with and assert defined in the options bag.
Repo: https://github.com/tc39/proposal-import-attributes/
Spec text: https://tc39.es/proposal-import-attributes/
ECMA-262 PR: tc39/ecma262#3057
Import assertions have recently been changed to be "import attributes", with the following changes:
with
instead ofassert
with
Additionally, the old syntax is still specified but marked as "normative optional, deprecated", and there is an optional fallback to lookup the
assert
property in the dynamic import options bag ifwith
is undefined.I don't think we can test (3), but for (1) and (2) we can copy the existing tests replacing
assert
withwith
. Additionally, we may need a test for dynamic import with bothwith
andassert
defined in the options bag.Ref #3780
The text was updated successfully, but these errors were encountered: