node
node copied to clipboard
module: Add SourceMap.findOrigin
This adds the SourceMap.findOrigin(lineNumber, columnNumber)
method, for finding the origin source file and 1-indexed line and column numbers corresponding to the 1-indexed line and column numbers from a call site in generated source code.
Fix: #47770
Review requested:
- [ ] @nodejs/loaders
- [ ] @nodejs/modules
Fixed the lint errors.
@VoltrexKeyva I followed the same pattern used throughout the file. (Eg, I didn't actually edit the annotations for findEntry
except to add that it is 0-indexed line/column offset, rather than a 1-indexed line/column number.)
I agree that object
is not particularly informative, but I'm not familiar with the format used, and since this is not making it worse, I don't think it should be a reason to block merging.
An effort to improve the type annotations throughout this API would certainly be worthwhile. If anyone can provide guidance as to what those annotations should look like, then I have no objection, of course.
CI: https://ci.nodejs.org/job/node-test-pull-request/51568/
Can someone with permission to view the Jenkins test results help out here? I can't view the output to see why they might be failing.
Or even better, can someone grant me the Overall/Read
permission?
@isaacs FYI Access to the Jenkins CI has been restricted for preparing next week's security releases. It'll be opened up again after those releases are out.
In any case, if this is referring to the CI from 1 May those results have been expunged -- we only keep Jenkins results around for 20 days.
Thanks for the update @richardlau
What's the best path forward here then? Wait until the sec releases are out and then push a change to trigger a re-run?
Yes, wait until the security releases are out and CI opened up again. No need to push new changes, we can trigger a new CI run with a https://github.com/nodejs/node/labels/request-ci label.
CI: https://ci.nodejs.org/job/node-test-pull-request/52342/
Landed in e26ffe7358d3874f85714985bb2bffdbcf1a75df