blob: c469f11ec841146a885a3e447b5cf63c74df70fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Debugger.Object.prototype.isModule
const g = newGlobal({newCompartment: true});
const dbg = Debugger(g);
let count = 0;
dbg.onNewScript = function (script) {
count += 1;
assertEq(script.isModule, false);
};
const m = g.eval("");
assertEq(count, 1);
|