fix: format

fix/sourcemaps-negative-column-idx
dominikg 3 days ago
parent 0c3e2763cd
commit cc9219ad39

@ -102,8 +102,10 @@ const { test, run } = suite<SourcemapTest>(async (config, cwd) => {
*/
for (let l = 0; l < decoded.length; l++) {
for (let m of decoded[l]) {
if(m.find(i => i < 0)) {
throw new Error(`Invalid mapping with negative value ${JSON.stringify(m)} at line ${l} of the decoded mappings of ${info} sourcemap\n${JSON.stringify(map)}`)
if (m.find((i) => i < 0)) {
throw new Error(
`Invalid mapping with negative value ${JSON.stringify(m)} at line ${l} of the decoded mappings of ${info} sourcemap\n${JSON.stringify(map)}`
);
}
}
}

Loading…
Cancel
Save