tor-browser

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

S15.10.4.1_A7_T1.js (639B)


      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 [[Prototype]] property of the newly constructed object is set to the
      7    original RegExp prototype object, the one that is the initial value of
      8    RegExp.prototype
      9 es5id: 15.10.4.1_A7_T1
     10 description: >
     11    Add new property to [[Prototype]] of REgExp and check this
     12    property of the newly constructed object
     13 ---*/
     14 
     15 var __re = new RegExp;
     16 RegExp.prototype.indicator = 1;
     17 
     18 assert.sameValue(__re.indicator, 1, 'The value of __re.indicator is expected to be 1');
     19 
     20 reportCompare(0, 0);