vm: use import attributes instead of import assertions · nodejs/node@06646e1 · GitHub
Skip to content

Commit 06646e1

Browse files
aduh95richardlau
authored andcommitted
vm: use import attributes instead of import assertions
The old import assertions proposal has been renamed to "import attributes" with the following major changes: 1. The keyword is now `with` instead of `assert`. 2. Unknown assertions cause an error rather than being ignored. This PR updates the documentation to encourage folks to use the new syntax, and add aliases to preserve backward compatibility. PR-URL: #50141 Backport-PR-URL: #51136 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
1 parent a193be3 commit 06646e1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

doc/api/vm.md

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)