summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-findObjects-05.js
blob: 7d581ca98c3429aacd0120902cd67d629d791c84 (plain)
1
2
3
4
5
6
7
8
9
10
// findObjects' result doesn't include any duplicates.

var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
dbg.addDebuggee(g);

let objects = dbg.findObjects();
let set = new Set(objects);

assertEq(objects.length, set.size);