tor-browser

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

15.2.3.7-6-a-305.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.7-6-a-305
      6 description: >
      7    Object.defineProperties - 'O' is an Arguments object, 'P' is
      8    generic own data property of 'O', and 'desc' is data descriptor,
      9    test updating multiple attribute values of 'P' (10.6
     10    [[DefineOwnProperty]] step 4)
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 var arg = (function() {
     15  return arguments;
     16 }(1, 2, 3));
     17 
     18 Object.defineProperty(arg, "genericProperty", {
     19  value: 1001,
     20  writable: true,
     21  enumerable: true,
     22  configurable: true
     23 });
     24 
     25 Object.defineProperties(arg, {
     26  "genericProperty": {
     27    value: 1002,
     28    enumerable: false,
     29    configurable: false
     30  }
     31 });
     32 
     33 verifyProperty(arg, "genericProperty", {
     34  value: 1002,
     35  writable: true,
     36  enumerable: false,
     37  configurable: false,
     38 });
     39 
     40 reportCompare(0, 0);