tor-browser

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

bug1547129.js (397B)


      1 load(libdir + "asserts.js");
      2 
      3 new class foo extends Array {
      4  e = function() {}
      5 }
      6 
      7 source = `new class bar extends Promise { e = function() {} }`;
      8 // Calling the Promise constructor with empty args fails with TypeError.
      9 assertThrowsInstanceOf(() => eval(source), TypeError);
     10 
     11 class Base {
     12  constructor() {
     13    return new Proxy({}, {});
     14  }
     15 }
     16 
     17 new class prox extends Base {
     18  e = function () {}
     19 }