tor-browser

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

testNewWithNonNativeProto.js (264B)


      1 function testNewWithNonNativeProto()
      2 {
      3  function f() { }
      4  var a = f.prototype = [];
      5  for (var i = 0; i < 5; i++)
      6    var o = new f();
      7  return Object.getPrototypeOf(o) === a && o.splice === Array.prototype.splice;
      8 }
      9 assertEq(testNewWithNonNativeProto(), true);