tor-browser

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

15.2.3.6-4-302.js (1013B)


      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-302
      6 description: >
      7    Object.defineProperty - 'O' is an Arguments object, 'name' is an
      8    index named property of 'O' but not defined in [[ParameterMap]] of
      9    'O', and 'desc' is accessor descriptor, test 'name' is defined in
     10    'O' with all correct attribute values (10.6 [[DefineOwnProperty]]
     11    step 3)
     12 includes: [propertyHelper.js]
     13 ---*/
     14 
     15 (function() {
     16  delete arguments[0];
     17 
     18  function getFunc() {
     19    return 10;
     20  }
     21 
     22  function setFunc(value) {
     23    this.setVerifyHelpProp = value;
     24  }
     25  Object.defineProperty(arguments, "0", {
     26    get: getFunc,
     27    set: setFunc,
     28    enumerable: false,
     29    configurable: false
     30  });
     31  verifyEqualTo(arguments, "0", getFunc());
     32 
     33  verifyWritable(arguments, "0", "setVerifyHelpProp");
     34 
     35  verifyProperty(arguments, "0", {
     36    enumerable: false,
     37    configurable: false,
     38  });
     39 }(0, 1, 2));
     40 
     41 reportCompare(0, 0);