tor-browser

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

15.2.3.6-4-506.js (624B)


      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-506
      6 description: >
      7    ES5 Attributes - property ([[Get]] is a Function, [[Set]] is
      8    undefined, [[Enumerable]] is true, [[Configurable]] is false) is
      9    undeletable
     10 includes: [propertyHelper.js]
     11 ---*/
     12 
     13 var obj = {};
     14 
     15 var getFunc = function() {
     16  return 1001;
     17 };
     18 
     19 Object.defineProperty(obj, "prop", {
     20  get: getFunc,
     21  set: undefined,
     22  enumerable: true,
     23  configurable: false
     24 });
     25 
     26 verifyProperty(obj, "prop", {
     27  configurable: false,
     28 });
     29 
     30 reportCompare(0, 0);