tor-browser

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

resumption-error-01.js (311B)


      1 // A resumption value can't have both {return:} and {throw:} properties.
      2 
      3 var g = newGlobal({newCompartment: true});
      4 var dbg = Debugger(g);
      5 dbg.onDebuggerStatement = stack => ({return: 1, throw: 2});
      6 dbg.uncaughtExceptionHook = exc => ({return: "corrected"});
      7 assertEq(g.eval("debugger; false;"), "corrected");