tor-browser

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

for-of-iterator-close-debugger.js (375B)


      1 // |jit-test| error:ReferenceError
      2 
      3 // for-of should close iterator even if the exception is once caught by the
      4 // debugger.
      5 
      6 var g = newGlobal({newCompartment: true});
      7 g.parent = this;
      8 g.eval("new Debugger(parent).onExceptionUnwind = function () { };");
      9 // jsfunfuzz-generated
     10 for (var x of []) {};
     11 for (var l of [0]) {
     12    for (var y = 0; y < 1; y++) {
     13        g2;
     14    }
     15 }