Debian Codegraph @

js/src/tests/test262/language/literals/bigint/numeric-separators/numeric-separator-literal-nzd-nsl-dds.js

raw
1 // Copyright (C) 2019 Leo Balter. 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: NonZeroDigit NumericLiteralSeparator DecimalDigits
7 info: |
8 NumericLiteral ::
9 DecimalIntegerLiteral BigIntLiteralSuffix
10 NumericLiteralBase BigIntLiteralSuffix
11
12 NumericLiteralBase ::
13 BinaryIntegerLiteral
14 OctalIntegerLiteral
15 HexIntegerLiteral
16
17 BigIntLiteralSuffix :: n
18
19 NumericLiteralSeparator ::
20 _
21
22 DecimalIntegerLiteral ::
23 ...
24 NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
25
26 NonZeroDigit :: one of
27 1 2 3 4 5 6 7 8 9
28
29 DecimalDigits ::
30 ...
31 DecimalDigits DecimalDigit
32 ...
33
34 features: [BigInt, numeric-separator-literal]
35 ---*/
36
37 assert.sameValue(1_0123456789n, 10123456789n);
38
39 reportCompare(0, 0);