tor-browser

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

15.2.3.6-4-316.js (899B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 15.2.3.6-4-316
      6 description: >
      7    Object.defineProperty - 'O' is an Arguments object, 'P' is generic
      8    own data property of 'O', and 'desc' is data descriptor, test
      9    updating multiple attribute values of 'P' (10.6
     10    [[DefineOwnProperty]] step 3)
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 (function() {
     15  Object.defineProperty(arguments, "genericProperty", {
     16    value: 1001,
     17    writable: true,
     18    enumerable: true,
     19    configurable: true
     20  });
     21  Object.defineProperty(arguments, "genericProperty", {
     22    value: 1002,
     23    enumerable: false,
     24    configurable: false
     25  });
     26 
     27  verifyProperty(arguments, "genericProperty", {
     28    value: 1002,
     29    writable: true,
     30    enumerable: false,
     31    configurable: false,
     32  });
     33 }(1, 2, 3));
     34 
     35 reportCompare(0, 0);