tor-browser

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

S15.4.3_A1.1_T1.js (665B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: |
      6    The value of the internal [[Prototype]] property of
      7    the Array constructor is the Function prototype object
      8 es5id: 15.4.3_A1.1_T1
      9 description: >
     10    Create new property of Function.prototype. When Array constructor
     11    has this property
     12 ---*/
     13 
     14 Function.prototype.myproperty = 1;
     15 
     16 assert.sameValue(Array.myproperty, 1, 'The value of Array.myproperty is expected to be 1');
     17 assert.sameValue(Array.hasOwnProperty('myproperty'), false, 'Array.hasOwnProperty("myproperty") must return false');
     18 
     19 reportCompare(0, 0);