Debian Codegraph @

js/src/tests/test262/language/literals/bigint/numeric-separators/numeric-separator-literal-lol-0_7-err.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2019 Leo Balter. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: prod-NumericLiteralSeparator
7 description: >
8 NumericLiteralSeparator must not be in a LegacyOctalLikeDecimalIntegerLiteral (0_7)
9 )
10 info: |
11 NumericLiteral ::
12 DecimalIntegerLiteral BigIntLiteralSuffix
13 NumericLiteralBase BigIntLiteralSuffix
14
15 NumericLiteralBase ::
16 BinaryIntegerLiteral
17 OctalIntegerLiteral
18 HexIntegerLiteral
19
20 BigIntLiteralSuffix :: n
21
22 NumericLiteralSeparator ::
23 _
24
25 DecimalIntegerLiteral ::
26 0
27 NonZeroDigit DecimalDigitsopt
28 NonZeroDigit
29 NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
30 NonOctalDecimalIntegerLiteral
31
32 NonOctalDecimalIntegerLiteral ::
33 0 NonOctalDigit
34 LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit
35 NonOctalDecimalIntegerLiteral DecimalDigit
36
37 LegacyOctalLikeDecimalIntegerLiteral ::
38 0 OctalDigit
39 LegacyOctalLikeDecimalIntegerLiteral OctalDigit
40
41 NonOctalDigit::one of
42 8 9
43
44 OctalDigit::one of
45 0 1 2 3 4 5 6 7
46 negative:
47 phase: parse
48 type: SyntaxError
49 features: [BigInt, numeric-separator-literal]
50 ---*/
51
52 $DONOTEVALUATE();
53
54 0_7n;