tor-browser

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

bug1715318.js (366B)


      1 // |jit-test| --no-threads; --fast-warmup
      2 function f() {
      3    // A non-constructor with a null .prototype.
      4    let arrow = _ => null;
      5    arrow.prototype = null;
      6 
      7    // Warm up.
      8    for (var i = 0; i < 100; i++) {}
      9 
     10    try {
     11        class C1 extends arrow {}
     12        throw "Fail";
     13    } catch (e) {
     14        assertEq(e instanceof TypeError, true);
     15    }
     16 }
     17 f();
     18 f();