Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Number/string-numeric-separator-literal-dot-dds-nsl-dd-ep.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: prod-NumericLiteralSeparator
6 description: NumericLiteralSeparator is not valid on string conversions for ToNumber operations
7 info: |
8 `.` DecimalDigits NumericLiteralSeparator DecimalDigit ExponentPart
9
10 NumericLiteralSeparator ::
11 _
12
13 DecimalLiteral ::
14 . DecimalDigits ExponentPart_opt
15
16 DecimalDigits ::
17 DecimalDigit
18 ...
19 DecimalDigits NumericLiteralSeparator DecimalDigit
20
21 ExponentIndicator :: one of
22 e E
23
24 features: [numeric-separator-literal]
25 ---*/
26
27 assert.sameValue(Number(".10_1e2"), NaN, ".10_1e2");