tor-browser

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

S7.8.5_A4.2.js (597B)


      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    Two regular expression literals in a program evaluate to
      7    regular expression objects that never compare as === to each other even
      8    if the two literals' contents are identical
      9 es5id: 7.8.5_A4.2
     10 description: Check equality two regular expression literals
     11 ---*/
     12 
     13 var regexp1 = /(?:)/;
     14 var regexp2 = /(?:)/;
     15 assert.notSameValue(
     16  regexp1,
     17  regexp2,
     18  "var regexp1 = /(?:)/; var regexp2 = /(?:)/; regexp1 !== regexp2"
     19 );
     20 
     21 reportCompare(0, 0);