tor-browser

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

numeric-separator-literal-sign-plus-dds-nsl-dd.js (851B)


      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: DecimalDigits NumericLiteralSeparator DecimalDigit
      7 info: |
      8  NumericLiteralSeparator ::
      9    _
     10 
     11  SignedInteger ::
     12    ...
     13    + DecimalDigits
     14    ...
     15 
     16 features: [numeric-separator-literal]
     17 ---*/
     18 
     19 assert.sameValue(+123456789_0, 1234567890);
     20 assert.sameValue(+123456789_1, 1234567891);
     21 assert.sameValue(+123456789_2, 1234567892);
     22 assert.sameValue(+123456789_3, 1234567893);
     23 assert.sameValue(+123456789_4, 1234567894);
     24 assert.sameValue(+123456789_5, 1234567895);
     25 assert.sameValue(+123456789_6, 1234567896);
     26 assert.sameValue(+123456789_7, 1234567897);
     27 assert.sameValue(+123456789_8, 1234567898);
     28 assert.sameValue(+123456789_9, 1234567899);
     29 
     30 reportCompare(0, 0);