Debian Codegraph @

js/src/tests/test262/language/literals/bigint/mv-is-not-integer-dil-dot-dds.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: sec-numeric-literal-static-semantics-early-errors
7 description: >
8 It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral dot decimalDigits)
9 info: |
10 Static Semantics: BigInt Value
11
12 NumericLiteral :: NumericLiteralBase NumericLiteralSuffix
13
14 1. Assert: NumericLiteralSuffix is n.
15 2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt.
16
17 DecimalLiteral ::
18 DecimalIntegerLiteral . DecimalDigits_opt
19 . DecimalDigits
20 features: [BigInt]
21 negative:
22 phase: parse
23 type: SyntaxError
24 ---*/
25
26 $DONOTEVALUATE();
27
28 2017.8n;