Commit 5e7946fe authored by Gus Caplan's avatar Gus Caplan Committed by Rich Trott
Browse files

vm: refactor SourceTextModule

- Removes redundant `instantiate` method
- Refactors `link` to match the spec linking steps more accurately
- Removes URL validation from SourceTextModule specifiers
- DRYs some dynamic import logic

Closes: https://github.com/nodejs/node/issues/29030



Co-Authored-By: default avatarMichaël Zasso <targos@protonmail.com>

PR-URL: https://github.com/nodejs/node/pull/29776


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
Reviewed-By: default avatarMinwoo Jung <minwoo@nodesource.com>
parent 6ba9471f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment