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-one-of.js (864B)


      1 // Copyright (C) 2017 the V8 project authors. 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  NumericLiteralSeparator ::
      9    _
     10 
     11  DecimalIntegerLiteral ::
     12    ...
     13    NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
     14 
     15  NonZeroDigit :: one of
     16    1 2 3 4 5 6 7 8 9
     17 
     18  DecimalDigits ::
     19    DecimalDigit
     20    ...
     21 
     22  DecimalDigit :: one of
     23    0 1 2 3 4 5 6 7 8 9
     24 
     25 features: [numeric-separator-literal]
     26 ---*/
     27 
     28 assert.sameValue(1_0, 10);
     29 assert.sameValue(1_1, 11);
     30 assert.sameValue(2_2, 22);
     31 assert.sameValue(3_3, 33);
     32 assert.sameValue(4_4, 44);
     33 assert.sameValue(5_5, 55);
     34 assert.sameValue(6_6, 66);
     35 assert.sameValue(7_7, 77);
     36 assert.sameValue(8_8, 88);
     37 assert.sameValue(9_9, 99);
     38 
     39 
     40 
     41 reportCompare(0, 0);