tonumber-numeric-separator-literal-dot-dds-nsl-dd-ep.js (566B)
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 StrDecimalDigits DecimalDigit 15 16 features: [numeric-separator-literal] 17 ---*/ 18 19 assert.sameValue(parseFloat(".10_1e2"), .10); 20 21 reportCompare(0, 0);