tor-browser

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

numeric-separator-literal-bil-bd-nsl-bd.js (647B)


      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: >
      7  `0b` | `0B` BinaryDigit NumericLiteralSeparator BinaryDigit
      8 info: |
      9  NumericLiteralSeparator ::
     10    _
     11 
     12  BinaryIntegerLiteral ::
     13    0b BinaryDigits
     14    0B BinaryDigits
     15 
     16  BinaryDigits ::
     17    BinaryDigit
     18    BinaryDigits BinaryDigit
     19    BinaryDigits NumericLiteralSeparator BinaryDigit
     20 
     21  BinaryDigit :: one of
     22    0 1
     23 
     24 features: [numeric-separator-literal]
     25 ---*/
     26 
     27 assert.sameValue(0b0_1, 0b01);
     28 assert.sameValue(0B0_1, 0B01);
     29 
     30 reportCompare(0, 0);