summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2023-05-13 04:36:31 -0700
committerGitHub <noreply@github.com>2023-05-13 13:36:31 +0200
commit21a2e901e7c16be8e1f97c374a181a40bd6bef38 (patch)
tree91c2d99054abfda49ac2909a1877fbc5318557da
parente74b84e458e40b8d95b495bad5ede7766820725f (diff)
downloadnode-new-21a2e901e7c16be8e1f97c374a181a40bd6bef38.tar.gz
doc: fix broken link to TC39 import attributes proposal
The import assertion proposal has been renamed and the old URL does not redirect to the new one. So let's update our URL to point to the import attributes proposal, which is what import assertions have been renamed to. PR-URL: https://github.com/nodejs/node/pull/47954 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
-rw-r--r--doc/api/vm.md2
-rw-r--r--test/fixtures/snapshot/typescript.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md
index 1b8bb71715..1c043d119d 100644
--- a/doc/api/vm.md
+++ b/doc/api/vm.md
@@ -1588,7 +1588,7 @@ are not controllable through the timeout either.
[`Error`]: errors.md#class-error
[`URL`]: url.md#class-url
[`eval()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval
-[`optionsExpression`]: https://tc39.es/proposal-import-assertions/#sec-evaluate-import-call
+[`optionsExpression`]: https://tc39.es/proposal-import-attributes/#sec-evaluate-import-call
[`script.runInContext()`]: #scriptrunincontextcontextifiedobject-options
[`script.runInThisContext()`]: #scriptruninthiscontextoptions
[`url.origin`]: url.md#urlorigin
diff --git a/test/fixtures/snapshot/typescript.js b/test/fixtures/snapshot/typescript.js
index e8734a648d..2a4b9f5e84 100644
--- a/test/fixtures/snapshot/typescript.js
+++ b/test/fixtures/snapshot/typescript.js
@@ -135144,7 +135144,7 @@ var ts;
* import "foo" |
* or after a re-export declaration that has a module specifier:
* export { foo } from "foo" |
- * Source: https://tc39.es/proposal-import-assertions/
+ * Source: https://tc39.es/proposal-import-attributes/
*/
if (contextToken) {
var file = contextToken.getSourceFile();