2017-08-25 21:45:26 +02:00
|
|
|
// Copyright (C) 2017 The V8 Project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-numeric-literal-static-semantics-early-errors
|
2018-09-27 01:18:22 +02:00
|
|
|
description: >
|
2017-08-25 21:45:26 +02:00
|
|
|
It is a Syntax Error if the MV is not an integer. (dot decimalDigits)
|
|
|
|
info: |
|
|
|
|
Static Semantics: BigInt Value
|
|
|
|
|
|
|
|
NumericLiteral :: NumericLiteralBase NumericLiteralSuffix
|
|
|
|
|
|
|
|
1. Assert: NumericLiteralSuffix is n.
|
|
|
|
2. Let the value of NumericLiteral be the MV of NumericLiteralBase represented as BigInt.
|
|
|
|
|
|
|
|
DecimalLiteral ::
|
|
|
|
DecimalIntegerLiteral . DecimalDigits_opt
|
|
|
|
. DecimalDigits
|
|
|
|
features: [BigInt]
|
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2017-08-25 21:45:26 +02:00
|
|
|
type: SyntaxError
|
|
|
|
---*/
|
|
|
|
|
2018-10-11 16:59:24 +02:00
|
|
|
$DONOTEVALUATE();
|
2017-08-25 21:45:26 +02:00
|
|
|
|
|
|
|
.0000000001n;
|