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