tor-browser

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

numeric-separator-literal-oil-od-nsl-od.js (881B)


      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: >
      7  `0o` | `0O` OctalDigit NumericLiteralSeparator OctalDigit
      8 info: |
      9  NumericLiteral ::
     10    DecimalIntegerLiteral BigIntLiteralSuffix
     11    NumericLiteralBase BigIntLiteralSuffix
     12 
     13  NumericLiteralBase ::
     14    BinaryIntegerLiteral
     15    OctalIntegerLiteral
     16    HexIntegerLiteral
     17 
     18  BigIntLiteralSuffix :: n
     19 
     20  NumericLiteralSeparator ::
     21    _
     22 
     23  OctalIntegerLiteral ::
     24    0o OctalDigits
     25    0O OctalDigits
     26 
     27  OctalDigits ::
     28    OctalDigit
     29    OctalDigits OctalDigit
     30    OctalDigits NumericLiteralSeparator OctalDigit
     31 
     32  OctalDigit :: one of
     33    0 1 2 3 4 5 6 7
     34 
     35 features: [BigInt, numeric-separator-literal]
     36 ---*/
     37 
     38 assert.sameValue(0o0_1n, 0o01n);
     39 assert.sameValue(0O0_1n, 0O01n);
     40 
     41 reportCompare(0, 0);