tor-browser

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

Array-of-nonconfigurable-2.js (390B)


      1 // Array.of does not overwrite non-configurable properties.
      2 
      3 load(libdir + "asserts.js");
      4 
      5 var obj;
      6 function C() {
      7    obj = this;
      8    Object.defineProperty(this, 0, {value: "v", configurable: false});
      9 }
     10 try { Array.of.call(C, 1); } catch (e) {}
     11 assertDeepEq(Object.getOwnPropertyDescriptor(obj, 0), {
     12    value: "v",
     13    writable: false,
     14    enumerable: false,
     15    configurable: false
     16 });