Don't pass sourceFile option to acorn.tokenizer
Categories
(DevTools :: Debugger, task)
Tracking
(firefox112 fixed)
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
Attachments
(1 file)
function getTokens(input, options) {
const tokens = [];
const res = acorn.tokenizer(input, {
locations: true,
sourceFile: options.url,
This is probably not a big deal, but we don't make any use of this information on the token, as we have access to the URL when creating SourceNode
new SourceNode(bufferLine, bufferColumn, options.url, lineStr)
Assignee | ||
Comment 1•1 year ago
|
||
We don't make any use of this information, so we'd better not pass the option.
Depends on D171185
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2da5ed051ee6 [devtools] Don't add sourceFile when fetching tokens for pretty-printing. r=jdescottes.
Comment 3•1 year ago
•
|
||
Backed out 2 changesets (Bug 1819268, Bug 1817728) for causing devtools-bundle failure
Backout: https://hg.mozilla.org/integration/autoland/rev/b292e10a9577ccd7a750d0113ac784333795c5ae
Failure log: https://treeherder.mozilla.org/logviewer?job_id=407286440&repo=autoland&lineNumber=234
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/596dd10a439d [devtools] Don't add sourceFile when fetching tokens for pretty-printing. r=jdescottes.
Comment 5•1 year ago
|
||
Backed out for causing Bug 1819531.
Backout link: https://hg.mozilla.org/integration/autoland/rev/6833a092ebd6bea1be81a71cb87a8d55b917e804
Assignee | ||
Comment 6•1 year ago
|
||
verified the task does not fail: https://treeherder.mozilla.org/jobs?repo=try&revision=d3f75d7c0d6d02851418e451f24c3c2749952897
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e13f5a1fa3dd [devtools] Don't add sourceFile when fetching tokens for pretty-printing. r=jdescottes.
Comment 8•1 year ago
|
||
bugherder |
Description
•