summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-ctor-05.js
blob: 3b5e3127c79e98b042c73cc79ee562264d5e6fff (plain)
1
2
3
4
5
6
7
8
// Redundant non-global Debugger() arguments are ignored.

var g = newGlobal({newCompartment: true});
g.eval("var a = {}, b = {};");
var dbg = Debugger(g.a, g.b);
var arr = dbg.getDebuggees();
assertEq(arr.length, 1);
assertEq(arr[0], dbg.addDebuggee(g));