diff options
Diffstat (limited to 'js/src/jit-test/tests/errors/error-sourceURL-disable.js')
-rw-r--r-- | js/src/jit-test/tests/errors/error-sourceURL-disable.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/errors/error-sourceURL-disable.js b/js/src/jit-test/tests/errors/error-sourceURL-disable.js new file mode 100644 index 0000000000..d9c17876fa --- /dev/null +++ b/js/src/jit-test/tests/errors/error-sourceURL-disable.js @@ -0,0 +1,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"); |