tor-browser

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

15.2.3.6-4-54.js (835B)


      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-54
      6 description: >
      7    Object.defineProperty - 'name' property doesn't exist in 'O', test
      8    [[Set]] of 'name' property of 'Attributes' is set as undefined
      9    value if absent in accessor descriptor 'desc' (8.12.9 step 4.b.i)
     10 includes: [propertyHelper.js]
     11 ---*/
     12 
     13 var obj = {};
     14 
     15 Object.defineProperty(obj, "property", {
     16  get: function() {
     17    return "property";
     18  },
     19  enumerable: false,
     20  configurable: false
     21 });
     22 
     23 
     24 assert.sameValue(obj.property, "property");
     25 
     26 var desc = Object.getOwnPropertyDescriptor(obj, "property");
     27 assert.sameValue(typeof desc.set, "undefined");
     28 
     29 verifyProperty(obj, "property", {
     30  enumerable: false,
     31  configurable: false,
     32 });
     33 
     34 reportCompare(0, 0);