Debian Codegraph @

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

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