tor-browser

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

7.8.5-1gs.js (915B)


      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 esid: prod-RegularExpressionNonTerminator
      6 info: |
      7  RegularExpressionLiteral ::
      8    / RegularExpressionBody / RegularExpressionFlags
      9 
     10    RegularExpressionBody ::
     11      RegularExpressionFirstChar RegularExpressionChars
     12 
     13    RegularExpressionChars ::
     14      [empty]
     15      RegularExpressionChars RegularExpressionChar
     16 
     17  RegularExpressionFirstChar ::
     18    RegularExpressionNonTerminator but not one of * or \ or / or [
     19 
     20  SourceCharacter ::
     21    any Unicode code point
     22 
     23  RegularExpressionNonTerminator::
     24    SourceCharacter but not LineTerminator
     25 
     26 description: >
     27  RegularExpressionBody will never be empty, because RegularExpressionFirstChar must always be _something_. // is a comment.
     28 ---*/
     29 
     30 var y = 42;
     31 var x = //.source;
     32 y;
     33 
     34 assert.sameValue(x, y);
     35 
     36 
     37 reportCompare(0, 0);