Debian Codegraph @

js/src/jit-test/tests/debug/Object-getPromiseReactions-07.js

raw
1 async function f(arg) {
2 await arg;
3
4 const g = newGlobal({ sameZoneAs: {} });
5 const dbg = g.Debugger({});
6 const promise = dbg.getNewestFrame().asyncPromise;
7 dbg.removeAllDebuggees();
8
9 // getPromiseReactions should return an empty array after removing debuggee.
10 assertEq(promise.getPromiseReactions().length, 0);
11 }
12
13 const p = f();
14 f(p);