tor-browser

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

onExceptionUnwind-05.js (301B)


      1 // onExceptionUnwind returning undefined does not affect the thrown exception.
      2 
      3 var g = newGlobal({newCompartment: true});
      4 g.parent = this;
      5 g.eval("new Debugger(parent).onExceptionUnwind = function () {};");
      6 
      7 var obj = new Error("oops");
      8 try {
      9    throw obj;
     10 } catch (exc) {
     11    assertEq(exc, obj);
     12 }