Debian Codegraph @

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

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2017 the V8 project authors. 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: NonZeroDigit NumericLiteralSeparator DecimalDigits
8 info: |
9 NumericLiteralSeparator ::
10 _
11
12 DecimalIntegerLiteral ::
13 ...
14 NonZeroDigit NumericLiteralSeparator DecimalDigits
15
16 NonZeroDigit :: one of
17 1 2 3 4 5 6 7 8 9
18
19 negative:
20 phase: parse
21 type: SyntaxError
22
23 features: [numeric-separator-literal]
24 ---*/
25
26 $DONOTEVALUATE();
27
28 0_0123456789