blob: 8d8f27ef91985ecfb31eee567dd2198d45f306ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// quit() while draining job queue leaves the remaining jobs untouched.
const global = newGlobal({ newCompartment:true });
const dbg = Debugger(global);
dbg.onDebuggerStatement = function() {
Promise.resolve().then(() => {
quit();
});
Promise.resolve().then(() => {
// This shouldn't be called.
assertEq(true, false);
});
};
global.eval("debugger");
|