tor-browser

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

numeric-separator-literal-unicode-err.js (825B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2019 Leo Balter. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: prod-NumericLiteralSeparator
      7 description: >
      8  NonZeroDigit NumericLiteralSeparator DecimalDigits sequence expressed with
      9  unicode escape sequence
     10 info: |
     11  NumericLiteral ::
     12    DecimalIntegerLiteral BigIntLiteralSuffix
     13    NumericLiteralBase BigIntLiteralSuffix
     14 
     15  NumericLiteralBase ::
     16    BinaryIntegerLiteral
     17    OctalIntegerLiteral
     18    HexIntegerLiteral
     19 
     20  BigIntLiteralSuffix :: n
     21 
     22  NumericLiteralSeparator::
     23    _
     24 
     25  DecimalIntegerLiteral::
     26    ...
     27    NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
     28 
     29 negative:
     30  phase: parse
     31  type: SyntaxError
     32 features: [BigInt, numeric-separator-literal]
     33 ---*/
     34 
     35 $DONOTEVALUATE();
     36 
     37 1\u005F0123456789n;