tor-browser

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

S15.10.4.1_A2_T1.js (492B)


      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    pattern is an object R whose [[Class]] property is "RegExp" and flags
      7    is not undefined
      8 es5id: 15.10.4.1_A2_T1
      9 description: >
     10    Checking if execution of "new RegExp(pattern, "i")", where the
     11    pattern is "/\u0042/i", does not fail
     12 ---*/
     13 
     14 var regExpObj = new RegExp(/\u0042/i, "i");
     15 assert(regExpObj.ignoreCase);
     16 
     17 reportCompare(0, 0);