tor-browser

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

object-create-with-primitive-second-arg-in-ion.js (254B)


      1 // |jit-test| --ion-eager
      2 load(libdir + "asserts.js");
      3 
      4 [1, "", true, Symbol(), undefined].forEach(props => {
      5    assertEq(Object.getPrototypeOf(Object.create(null, props)), null);
      6 });
      7 
      8 assertThrowsInstanceOf(() => Object.create(null, null), TypeError);