summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/errors/error-sourceURL-disable.js
blob: d9c17876fac2bef17466ad32b2bdaa2d78aabb87 (plain)
1
2
3
4
5
6
7
8
// |jit-test| --no-source-pragmas

const stack = evaluate(`
  new Error('test').stack;
  //# sourceURL=file.js
`, { fileName: "test.js"});

assertEq(stack.split("\n")[0], "@test.js:2:3");