Debian Codegraph @

js/src/jit-test/tests/debug/bug1160182.js

raw
1 // |jit-test| skip-if: isLcovEnabled()
2
3 var g = newGlobal({newCompartment: true});
4 g.eval("(" + function() {
5 var o = {get x() {}};
6 this.method = Object.getOwnPropertyDescriptor(o, "x").get;
7 assertEq(isLazyFunction(method), true);
8 } + ")()");
9 var dbg = new Debugger();
10 var gw = dbg.addDebuggee(g);
11 var scripts = dbg.findScripts();
12 var methodv = gw.makeDebuggeeValue(g.method);
13 assertEq(scripts.indexOf(methodv.script) != -1, true);