Source code
Revision control
Copy as Markdown
Other Tools
// |jit-test| skip-if: isLcovEnabled()
var g = newGlobal({newCompartment: true});
g.eval("(" + function() {
var o = {get x() {}};
this.method = Object.getOwnPropertyDescriptor(o, "x").get;
assertEq(isLazyFunction(method), true);
} + ")()");
var dbg = new Debugger();
var gw = dbg.addDebuggee(g);
var scripts = dbg.findScripts();
var methodv = gw.makeDebuggeeValue(g.method);
assertEq(scripts.indexOf(methodv.script) != -1, true);