summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Source-sourceMapURL-disable.js
blob: 0e103d7df38f24cd02371b9d29cf6c20282c3639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| --no-source-pragmas

const g = newGlobal({ newCompartment: true });
const dbg = Debugger(g);
let source;
dbg.onDebuggerStatement = function (frame) {
  source = frame.script.source;
};

g.eval(`
  debugger;
  //# sourceMappingURL=file.js
`);
assertEq(source.sourceMapURL, null);