blob: d9cd8fb966d7a1f8ddb6a1c123c1aa91624dd7d8 (
plain)
1
2
3
4
5
6
7
8
9
|
// findScripts finds non-compile-and-go scripts
var g = newGlobal({newCompartment: true});
g.evaluate("function f(x) { return x + 1; }");
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
var s = dbg.findScripts();
var fw = gw.getOwnPropertyDescriptor("f").value;
assertEq(s.indexOf(fw.script) !== -1, true);
|