tor-browser

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

15.2.3.3-3-2.js (519B)


      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.3-3-2
      6 description: Object.getOwnPropertyDescriptor - 'P' is inherited data property
      7 ---*/
      8 
      9 var proto = {
     10  property: "inheritedDataProperty"
     11 };
     12 
     13 var Con = function() {};
     14 Con.ptototype = proto;
     15 
     16 var child = new Con();
     17 
     18 var desc = Object.getOwnPropertyDescriptor(child, "property");
     19 
     20 assert.sameValue(typeof desc, "undefined", 'typeof desc');
     21 
     22 reportCompare(0, 0);