Debian Codegraph @

js/src/tests/test262/language/literals/bigint/binary-invalid-digit.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2017 Robin Templeton. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 description: Binary BigInt literal containing an invalid digit
7 esid: prod-NumericLiteral
8 info: |
9 NumericLiteral ::
10 NumericLiteralBase NumericLiteralSuffix
11
12 NumericLiteralBase ::
13 DecimalLiteral
14 BinaryIntegerLiteral
15 OctalIntegerLiteral
16 HexIntegerLiteral
17
18 NumericLiteralSuffix :: n
19 negative:
20 phase: parse
21 type: SyntaxError
22 features: [BigInt]
23 ---*/
24
25 $DONOTEVALUATE();
26
27 0b2n;