Debian Codegraph @

js/src/tests/test262/language/literals/numeric/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 NumericLiteralSeparator ::
12 _
13
14 DecimalIntegerLiteral ::
15 0
16 NonZeroDigit DecimalDigitsopt
17 NonZeroDigit
18 NonZeroDigit NumericLiteralSeparator_opt DecimalDigits
19 NonOctalDecimalIntegerLiteral
20
21 NonOctalDecimalIntegerLiteral ::
22 0 NonOctalDigit
23 LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit
24 NonOctalDecimalIntegerLiteral DecimalDigit
25
26 LegacyOctalLikeDecimalIntegerLiteral ::
27 0 OctalDigit
28 LegacyOctalLikeDecimalIntegerLiteral OctalDigit
29
30 NonOctalDigit::one of
31 8 9
32
33 OctalDigit::one of
34 0 1 2 3 4 5 6 7
35 negative:
36 phase: parse
37 type: SyntaxError
38 features: [numeric-separator-literal]
39 ---*/
40
41 $DONOTEVALUATE();
42
43 0_7;