summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Source-displayURL-disable.js
blob: 3ac2dd3fffe8f8cbb314a563b31bcfcf23677572 (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;
  //# sourceURL=file.js
`);
assertEq(source.displayURL, null);