tor-browser

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

unicode-escape-nls-err.js (996B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2014 Valerie Young. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: prod-Identifier
      6 description: NumericLiteralSeperator disallowed in unicode CodePoint escape sequence
      7 info: |
      8 Identifier:
      9   IdentifierName but not ReservedWord
     10 
     11 IdentifierName ::
     12   IdentifierStart
     13   IdentifierNameIdentifierPart
     14 
     15 IdentifierStart ::
     16   UnicodeIDStart
     17   $
     18   _
     19   \UnicodeEscapeSequence
     20 
     21 IdentifierPart ::
     22   UnicodeIDContinue
     23   $
     24   \UnicodeEscapeSequence
     25 
     26 UnicodeEscapeSequence ::
     27   uHex4Digits
     28   u{CodePoint}
     29 
     30 CodePoint ::
     31   HexDigit but only if MV of HexDigits ≤ 0x10FFFF
     32   CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF
     33 
     34 CodePointDigits ::
     35   HexDigit
     36   CodePointDigitsHexDigit
     37 
     38  HexDigit :: one of
     39    0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
     40 
     41 features: [numeric-separator-literal]
     42 negative:
     43  phase: parse
     44  type: SyntaxError
     45 ---*/
     46 
     47 $DONOTEVALUATE();
     48 
     49 var \u{00_76} = 1;