Debian Codegraph @

js/src/tests/test262/language/literals/bigint/numeric-separators/numeric-separator-literal-oil-ods-nsl-ods.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: >
7 `0o` | `0O` OctalDigits NumericLiteralSeparator OctalDigit
8 info: |
9 NumericLiteral ::
10 DecimalIntegerLiteral BigIntLiteralSuffix
11 NumericLiteralBase BigIntLiteralSuffix
12
13 NumericLiteralBase ::
14 BinaryIntegerLiteral
15 OctalIntegerLiteral
16 HexIntegerLiteral
17
18 BigIntLiteralSuffix :: n
19
20 NumericLiteralSeparator ::
21 _
22
23 OctalIntegerLiteral ::
24 0o OctalDigits
25 0O OctalDigits
26
27 OctalDigits ::
28 OctalDigit
29 OctalDigits OctalDigit
30 OctalDigits NumericLiteralSeparator OctalDigit
31
32 OctalDigit :: one of
33 0 1 2 3 4 5 6 7
34
35 features: [BigInt, numeric-separator-literal]
36 ---*/
37
38 assert.sameValue(0o01_00n, 0o0100n);
39 assert.sameValue(0O01_00n, 0O0100n);
40
41 reportCompare(0, 0);