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-281.js (814B)


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