tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug1160182.js (443B)


      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);