diff --git a/packages/svelte/tests/sourcemaps/test.ts b/packages/svelte/tests/sourcemaps/test.ts index e534146a3a..ed5375ed55 100644 --- a/packages/svelte/tests/sourcemaps/test.ts +++ b/packages/svelte/tests/sourcemaps/test.ts @@ -100,10 +100,12 @@ const { test, run } = suite(async (config, cwd) => { Decoded sourcemap mappings contain absolute line/column numbers. Negative values are invalid and can cause errors in downstream processing */ - 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)}`) + 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)}` + ); } } }