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

var g = newGlobal();
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));