diff --git a/doc/api/cli.md b/doc/api/cli.md index 066c8e6ab6e..5e85f9caaac 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -733,7 +733,7 @@ changes: description: This API is no longer experimental. --> -Enable [Source Map v3][Source Map] support for stack traces. +Enable [Source Map][] support for stack traces. When using a transpiler, such as TypeScript, stack traces thrown by an application reference the transpiled code, not the original source position. @@ -3850,7 +3850,7 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12 [REPL]: repl.md [ScriptCoverage]: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ScriptCoverage [ShadowRealm]: https://github.com/tc39/proposal-shadowrealm -[Source Map]: https://sourcemaps.info/spec.html +[Source Map]: https://tc39.es/ecma426/ [TypeScript type-stripping]: typescript.md#type-stripping [V8 Inspector integration for Node.js]: debugger.md#v8-inspector-integration-for-nodejs [V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html diff --git a/doc/api/module.md b/doc/api/module.md index 7389acbeef4..8f1cab73c0c 100644 --- a/doc/api/module.md +++ b/doc/api/module.md @@ -1702,7 +1702,7 @@ Running `node --import 'data:text/javascript,import { register } from "node:modu or `node --import ./import-map-sync-hooks.js main.js` should print `some module!`. -## Source map v3 support +## Source Map Support diff --git a/doc/api/process.md b/doc/api/process.md index 3b9341a4f54..e5e609dce8a 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -4033,7 +4033,7 @@ added: * `val` {boolean} -This function enables or disables the [Source Map v3][Source Map] support for +This function enables or disables the [Source Map][] support for stack traces. It provides same features as launching Node.js process with commandline options @@ -4084,7 +4084,7 @@ added: * {boolean} The `process.sourceMapsEnabled` property returns whether the -[Source Map v3][Source Map] support for stack traces is enabled. +[Source Map][] support for stack traces is enabled. ## `process.stderr` @@ -4523,7 +4523,7 @@ cases: [Permission Model]: permissions.md#permission-model [Readable]: stream.md#readable-streams [Signal Events]: #signal-events -[Source Map]: https://sourcemaps.info/spec.html +[Source Map]: https://tc39.es/ecma426/ [Stream compatibility]: stream.md#compatibility-with-older-nodejs-versions [TTY]: tty.md#tty [Writable]: stream.md#writable-streams diff --git a/lib/internal/source_map/source_map_cache.js b/lib/internal/source_map/source_map_cache.js index 5ebf07d8769..603685290ad 100644 --- a/lib/internal/source_map/source_map_cache.js +++ b/lib/internal/source_map/source_map_cache.js @@ -10,7 +10,7 @@ const { StringPrototypeSplit, } = primordials; -// See https://sourcemaps.info/spec.html for SourceMap V3 specification. +// See https://tc39.es/ecma426/ for SourceMap V3 specification. const { Buffer } = require('buffer'); let debug = require('internal/util/debuglog').debuglog('source_map', (fn) => { debug = fn; diff --git a/test/parallel/test-source-map-enable.js b/test/parallel/test-source-map-enable.js index 64f4254fcdd..a41170f17a9 100644 --- a/test/parallel/test-source-map-enable.js +++ b/test/parallel/test-source-map-enable.js @@ -273,7 +273,7 @@ function nextdir() { // Does not attempt to apply path resolution logic to absolute URLs // with schemes. // Refs: https://github.com/webpack/webpack/issues/9601 -// Refs: https://sourcemaps.info/spec.html#h.75yo6yoyk7x5 +// Refs: https://tc39.es/ecma426/#sec-sources { const output = spawnSync(process.execPath, [ '--enable-source-maps',