tor-browser

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

numeric-separator-literal-nzd-nsl-dd.js (823B)


      1 // Copyright (C) 2019 Leo Balter. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: prod-NumericLiteralSeparator
      6 description: NonZeroDigit NumericLiteralSeparator DecimalDigit
      7 info: |
      8  NumericLiteral ::
      9    DecimalIntegerLiteral BigIntLiteralSuffix
     10    NumericLiteralBase BigIntLiteralSuffix
     11 
     12  NumericLiteralBase ::
     13    BinaryIntegerLiteral
     14    OctalIntegerLiteral
     15    HexIntegerLiteral
     16 
     17  BigIntLiteralSuffix :: n
     18 
     19  NumericLiteralSeparator ::
     20    _
     21 
     22  DecimalIntegerLiteral ::
     23    ...
     24    NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
     25 
     26  NonZeroDigit :: one of
     27    1 2 3 4 5 6 7 8 9
     28 
     29  DecimalDigits ::
     30    ...
     31    DecimalDigits DecimalDigit
     32    ...
     33 
     34 features: [BigInt, numeric-separator-literal]
     35 ---*/
     36 
     37 assert.sameValue(1_1n, 11n);
     38 
     39 reportCompare(0, 0);