Debian Codegraph @

js/src/tests/test262/language/literals/bigint/numeric-separators/numeric-separator-literal-bil-nsl-bd-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 may not be the last digit character of a
9 BinaryIntegerLiteral (before n)
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 BinaryIntegerLiteral ::
26 0b BinaryDigits
27 0B BinaryDigits
28
29 BinaryDigits ::
30 BinaryDigit
31 BinaryDigits BinaryDigit
32 BinaryDigits NumericLiteralSeparator BinaryDigit
33
34 BinaryDigit :: one of
35 0 1
36 negative:
37 phase: parse
38 type: SyntaxError
39 features: [BigInt, numeric-separator-literal]
40 ---*/
41
42 $DONOTEVALUATE();
43
44 0b0_n;