summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-findObjects-09.js
blob: 4d95d3abf928a9705c208f2bcc8f3e38920b9588 (plain)
1
2
3
4
5
6
7
8
9
// We don't return objects where our query's class name is the prefix of the
// object's class name and vice versa.

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

assertEq(dbg.findObjects({ class: "Objec" }).length, 0);
assertEq(dbg.findObjects({ class: "Objectttttt" }).length, 0);