blob: 758680e03131baf29449c787cd0a1e2f049e4d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// catchTermination should undo the quit() operation and let the remaining jobs
// run.
evaluate(`
quit();
`, {
catchTermination : true
});
const global = newGlobal({ newCompartment: true });
let called = false;
const dbg = new Debugger(global);
dbg.onDebuggerStatement = function (frame) {
Promise.resolve(42).then(v => { called = true; });
};
global.eval(`
debugger;
`);
drainJobQueue();
assertEq(called, true);
|