summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-findObjects-fuzzing.js
blob: 251fea5fc9c6fcc2a5982310bd08a1ffb3541b73 (plain)
1
2
3
4
5
6
7
// |jit-test| --fuzzing-safe
// Debugger.findObjects returns an empty array with --fuzzing-safe

var g = newGlobal({newCompartment: true});
g.evaluate("arr = [1, 2, 3].map(x => x + 1)");
var dbg = new Debugger(g);
assertEq(dbg.findObjects().length, 0);