Skip to content
Snippets Groups Projects
Commit c44761c7 authored by Daniel Ehrenberg's avatar Daniel Ehrenberg Committed by GitHub
Browse files

Merge pull request #1199 from leobalter/bigint-invalid-mv

Add tests for invalid BigInt MVs
parents d9f62e4c bb9fc811
No related branches found
No related tags found
No related merge requests found
// 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
description: >
It is a Syntax Error if the MV is not an integer. (decimalIntegerLiteral 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:
phase: early
type: SyntaxError
---*/
throw "Test262: This statement should not be evaluated.";
2017.8n;
// 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
description: >
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:
phase: early
type: SyntaxError
---*/
throw "Test262: This statement should not be evaluated.";
.0000000001n;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment