Skip to content

Commit

Permalink
doc: fix link and history of SourceMap sections
Browse files Browse the repository at this point in the history
PR-URL: nodejs#57098
Fixes: nodejs#57094
Refs: nodejs#48461
Refs: nodejs#47790
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Jacob Smith <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
aduh95 authored and acidiney committed Feb 23, 2025
1 parent 8bb5c36 commit 9e8af2b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,13 @@ added:
#### `new SourceMap(payload[, { lineLengths }])`
<!-- YAML
changes:
- version: v20.5.0
pr-url: https://github.com/nodejs/node/pull/48461
description: Add support for `lineLengths`.
-->
* `payload` {Object}
* `lineLengths` {number\[]}
Expand Down Expand Up @@ -1726,6 +1733,12 @@ columnNumber)`
#### `sourceMap.findOrigin(lineNumber, columnNumber)`
<!-- YAML
added:
- v20.4.0
- v18.18.0
-->
* `lineNumber` {number} The 1-indexed line number of the call
site in the generated source
* `columnNumber` {number} The 1-indexed column number
Expand Down
4 changes: 2 additions & 2 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -1271,9 +1271,9 @@ This section was moved to

* <a id="modules_module_findsourcemap_path_error" href="module.html#modulefindsourcemappath">`module.findSourceMap(path)`</a>
* <a id="modules_class_module_sourcemap" href="module.html#class-modulesourcemap">Class: `module.SourceMap`</a>
* <a id="modules_new_sourcemap_payload" href="module.html#new-sourcemappayload">`new SourceMap(payload)`</a>
* <a id="modules_new_sourcemap_payload" href="module.html#new-sourcemappayload--linelengths-">`new SourceMap(payload)`</a>
* <a id="modules_sourcemap_payload" href="module.html#sourcemappayload">`sourceMap.payload`</a>
* <a id="modules_sourcemap_findentry_linenumber_columnnumber" href="module.html#sourcemapfindentrylinenumber-columnnumber">`sourceMap.findEntry(lineNumber, columnNumber)`</a>
* <a id="modules_sourcemap_findentry_linenumber_columnnumber" href="module.html#sourcemapfindentrylineoffset-columnoffset">`sourceMap.findEntry(lineNumber, columnNumber)`</a>

[Determining module system]: packages.md#determining-module-system
[ECMAScript Modules]: esm.md
Expand Down

0 comments on commit 9e8af2b

Please sign in to comment.