Debian Codegraph @

js/src/jit-test/tests/debug/Source-sourceMapURL-disable.js

raw
1 // |jit-test| --no-source-pragmas
2
3 const g = newGlobal({ newCompartment: true });
4 const dbg = Debugger(g);
5 let source;
6 dbg.onDebuggerStatement = function (frame) {
7 source = frame.script.source;
8 };
9
10 g.eval(`
11 debugger;
12 //# sourceMappingURL=file.js
13 `);
14 assertEq(source.sourceMapURL, null);