module: add SourceMap.lineLengths#48461
Conversation
anonrig
left a comment
There was a problem hiding this comment.
Can you update the documentation as well?
b2376cf to
5873274
Compare
|
The failing tests in CI are a bit confusing, these all pass locally, and it looks like they're not running with source maps enabled for some reason. I'm not sure why anything I did there would have changed that though. |
5873274 to
11b3b96
Compare
11b3b96 to
da4b63a
Compare
da4b63a to
1485dc8
Compare
doc/api/module.md
Outdated
| @@ -274,6 +274,7 @@ added: | |||
| #### `new SourceMap(payload)` | |||
There was a problem hiding this comment.
The function signature should be updated to include the optional parameter too.
| #### `new SourceMap(payload)` | |
| #### `new SourceMap(payload[, lineLengths])` |
As the generated code line lengths property is not part of the source maps spec, would it be more prudent to set the property with an option bag instead of a positional parameter?
There was a problem hiding this comment.
would it be more prudent to set the property with an option bag instead of a positional parameter?
No strong opinions here, but it's a pita to change this kind of thing later, so I'm feeling like it's probably a good idea, too. Anyone else wanna weight on it?
There was a problem hiding this comment.
@bcoe would you mind taking a look at this PR? Thank you!
Document lineLengths argument Make lineLengths part of an option bag rather than a positional arg
|
Landed in 9053943 |
Fix: nodejs#48460 PR-URL: nodejs#48461 Fixes: nodejs#48460 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Fix: nodejs#48460 PR-URL: nodejs#48461 Fixes: nodejs#48460 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
|
This commit does not land cleanly on |
|
This is another PR that should have been labeled semver-minor. |
PR-URL: nodejs#57098 Fixes: nodejs#57094 Refs: nodejs#48461 Refs: nodejs#47790 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#57098 Fixes: nodejs#57094 Refs: nodejs#48461 Refs: nodejs#47790 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#57098 Fixes: nodejs#57094 Refs: nodejs#48461 Refs: nodejs#47790 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#57098 Fixes: nodejs#57094 Refs: nodejs#48461 Refs: nodejs#47790 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com>
Fix: #48460