tor-browser

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

testDirectProxyGetOwnPropertyNames3.js (285B)


      1 load(libdir + "asserts.js");
      2 
      3 // Throw a TypeError if the trap does not return an object
      4 var handler = { ownKeys: () => undefined };
      5 for (let p of [new Proxy({}, handler), Proxy.revocable({}, handler).proxy])
      6    assertThrowsInstanceOf(() => Object.getOwnPropertyNames(p), TypeError);