tor-browser

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

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


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