tests/auto/qml/ecmascripttests/test262/test/built-ins/parseFloat/tonumber-numeric-separator-literal-nzd-nsl-dd.js
raw| 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 |
| 8 | info: | |
| 9 | |
| 10 | StrDecimalDigits ::: |
| 11 | DecimalDigit |
| 12 | StrDecimalDigits DecimalDigit |
| 13 | ... |
| 14 | |
| 15 | features: [numeric-separator-literal] |
| 16 | ---*/ |
| 17 | |
| 18 | assert.sameValue(parseFloat("1_1"), 1); |