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-302.js (786B)


      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-302
      6 description: >
      7    Object.defineProperties - 'O' is an Arguments object, 'P' is
      8    generic property, and 'desc' is data descriptor, test 'P' is
      9    defined in 'O' with all correct attribute values (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.defineProperties(arg, {
     19  "genericProperty": {
     20    value: 1001,
     21    writable: true,
     22    enumerable: true,
     23    configurable: true
     24  }
     25 });
     26 
     27 verifyProperty(arg, "genericProperty", {
     28  value: 1001,
     29  writable: true,
     30  enumerable: true,
     31  configurable: true,
     32 });
     33 
     34 reportCompare(0, 0);