tor-browser

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

bug1213574.js (429B)


      1 // |jit-test| skip-if: helperThreadCount() === 0
      2 
      3 var lfGlobal = newGlobal();
      4 lfGlobal.offThreadCompileToStencil(`{ let x; throw 42; }`);
      5 var stencil = lfGlobal.finishOffThreadStencil();
      6 try {
      7    lfGlobal.evalStencil(stencil);
      8 } catch (e) {
      9 }
     10 
     11 lfGlobal.offThreadCompileToStencil(`function f() { { let x = 42; return x; } }`);
     12 stencil = lfGlobal.finishOffThreadStencil();
     13 try {
     14    lfGlobal.evalStencil(stencil);
     15 } catch (e) {
     16 }