Debian Codegraph @

js/src/tests/test262/language/literals/bigint/non-octal-like-invalid-0008n.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-NumericLiteral
7 description: >
8 The BigInt suffix is disallowed in NonOctalDecimalIntegerLiteral
9 info: |
10 NumericLiteral ::
11 DecimalIntegerLiteral BigIntLiteralSuffix
12
13 https://github.com/tc39/proposal-bigint/issues/208
14
15 NumericLiteral ::
16 DecimalBigIntegerLiteral
17
18 DecimalBigIntegerLiteral ::
19 0 BigIntLiteralSuffix
20 NonZeroDigit DecimalDigits_opt BigIntLiteralSuffix
21 features: [BigInt]
22 negative:
23 phase: parse
24 type: SyntaxError
25 ---*/
26
27 $DONOTEVALUATE();
28
29 0008n;