Debian Codegraph @

js/src/jit-test/tests/debug/Debugger-findObjects-classObj-proxy.js

raw
1 const g = newGlobal({ newCompartment: true });
2
3 g.eval(`
4 var x1 = new Proxy({}, {});
5 `);
6
7 const dbg = new Debugger();
8 const gDO = dbg.addDebuggee(g);
9
10 const x1DO = gDO.makeDebuggeeValue(g.x1);
11
12 // Proxy instance doesn't match because of dynamic prototype.
13 const ProxyDO = gDO.makeDebuggeeValue(g.Proxy);
14 assertEq(dbg.findObjects({ class: ProxyDO }).includes(x1DO), false);
15 const ObjectDO = gDO.makeDebuggeeValue(g.Object);
16 assertEq(dbg.findObjects({ class: ObjectDO }).includes(x1DO), false);