blob: c2308c6135d0a202ccbfbb4e56c0f5508c1177cd (
plain)
1
2
3
4
5
6
7
8
9
|
// findScripts finds non-compile-and-go scripts
var g = newGlobal();
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);
|