tor-browser

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

15.2.3.6-4-289.js (798B)


      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-289
      6 description: >
      7    Object.defineProperty - 'O' is an Arguments object, 'name' is own
      8    property of 'O', and is deleted afterwards, and 'desc' is data
      9    descriptor, test 'name' is redefined in 'O' with all correct
     10    attribute values (10.6 [[DefineOwnProperty]] step 3)
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 (function() {
     15  delete arguments[0];
     16  Object.defineProperty(arguments, "0", {
     17    value: 10,
     18    writable: true,
     19    enumerable: true,
     20    configurable: true
     21  });
     22 
     23  verifyProperty(arguments, "0", {
     24    value: 10,
     25    writable: true,
     26    enumerable: true,
     27    configurable: true,
     28  });
     29 }(0, 1, 2));
     30 
     31 reportCompare(0, 0);