diff options
author | bcoe <bencoe@google.com> | 2019-10-06 11:37:42 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-13 18:58:21 -0700 |
commit | 4ca61f40fed31d590e4d624551044fe7cc7efd42 (patch) | |
tree | 8bb59868ac3566ae37e0146578535ad042978790 /doc | |
parent | f8f6a21580544146d5a8527333e1130b336dc094 (diff) | |
download | android-node-v8-4ca61f40fed31d590e4d624551044fe7cc7efd42.tar.gz android-node-v8-4ca61f40fed31d590e4d624551044fe7cc7efd42.tar.bz2 android-node-v8-4ca61f40fed31d590e4d624551044fe7cc7efd42.zip |
process: add lineLength to source-map-cache
Without the line lengths of in-memory transpiled source, it's not
possible to convert from byte ofsets to line/column offsets.
PR-URL: https://github.com/nodejs/node/pull/29863
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cli.md | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index 016840257f..ed2a0f1b1c 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1171,8 +1171,9 @@ If found, Source Map data is appended to the top-level key `source-map-cache` on the JSON coverage object. `source-map-cache` is an object with keys representing the files source maps -were extracted from, and the values include the raw source-map URL -(in the key `url`) and the parsed Source Map V3 information (in the key `data`). +were extracted from, and values which include the raw source-map URL +(in the key `url`), the parsed Source Map V3 information (in the key `data`), +and the line lengths of the source file (in the key `lineLengths`). ```json { @@ -1198,7 +1199,13 @@ were extracted from, and the values include the raw source-map URL ], "mappings": "MAAMA,IACJC,YAAaC", "sourceRoot": "./" - } + }, + "lineLengths": [ + 13, + 62, + 38, + 27 + ] } } } |