tor-browser

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

delete-last-check-proto.js (250B)


      1 // Test that removing a non-dictionary property does not roll back the object's
      2 // shape to the previous one if the protos are different.
      3 
      4 var o = {x: 1};
      5 o.y = 2;
      6 Object.setPrototypeOf(o, null);
      7 delete o.y;
      8 assertEq(Object.getPrototypeOf(o), null);