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