| 1 |
// Copyright (C) 2017 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: prod-NumericLiteralSeparator |
| 6 |
description: > |
| 7 |
NumericLiteralSeparator may not be the appear adjacent to `0o` | `0O` in a |
| 8 |
OctalIntegerLiteral |
| 9 |
info: | |
| 10 |
NumericLiteralSeparator :: |
| 11 |
_ |
| 12 |
|
| 13 |
OctalIntegerLiteral :: |
| 14 |
0o OctalDigits |
| 15 |
0O OctalDigits |
| 16 |
|
| 17 |
OctalDigits :: |
| 18 |
OctalDigit |
| 19 |
OctalDigits OctalDigit |
| 20 |
OctalDigits NumericLiteralSeparator OctalDigit |
| 21 |
|
| 22 |
OctalDigit :: one of |
| 23 |
0 1 2 3 4 5 6 7 |
| 24 |
|
| 25 |
negative: |
| 26 |
phase: early |
| 27 |
type: SyntaxError |
| 28 |
|
| 29 |
features: [numeric-separator-literal] |
| 30 |
---*/ |
| 31 |
|
| 32 |
throw "Test262: This statement should not be evaluated."; |
| 33 |
|
| 34 |
0o_1 |