tor-browser

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

tonumber-numeric-separator-literal-dot-dd-nsl-dds-ep.js (573B)


      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: sec-tonumber-applied-to-the-string-type
      6 description: >
      7  The NSL does not affect strings parsed by parseFloat - . StrDecimalDigits StrExponentPart
      8 info: |
      9  StrUnsignedDecimalLiteral :::
     10    . StrDecimalDigits StrExponentPart
     11 
     12  StrDecimalDigits :::
     13    DecimalDigit
     14    ...
     15    StrDecimalDigits DecimalDigit
     16 
     17 features: [numeric-separator-literal]
     18 ---*/
     19 
     20 assert.sameValue(parseFloat(".1_01e2"), .1);
     21 
     22 reportCompare(0, 0);