summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1160182.js
blob: a1b73289402448b4e4051814879711259683ad62 (plain)
1
2
3
4
5
6
7
8
9
10
11
var g = newGlobal();
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);