From 3460cf9c23d75d1e188851760466e85efe78b80d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 13 May 2023 04:36:31 -0700 Subject: [PATCH] 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 Reviewed-By: Antoine du Hamel Reviewed-By: Darshan Sen Reviewed-By: Trivikram Kamat --- doc/api/vm.md | 2 +- test/fixtures/snapshot/typescript.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index a0f26d1a3d4cdb..f1f9ab84fa11ce 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -1585,7 +1585,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 e8734a648d0bcd..2a4b9f5e84dfbb 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();