Debian Codegraph @

js/src/tests/test262/language/literals/numeric/numeric-separators/numeric-separator-literal-bil-nsl-bd-err.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: prod-NumericLiteralSeparator
7 description: >
8 NumericLiteralSeparator may not be the last digit character of a
9 BinaryIntegerLiteral
10 info: |
11 NumericLiteralSeparator ::
12 _
13
14 BinaryIntegerLiteral ::
15 0b BinaryDigits
16 0B BinaryDigits
17
18 BinaryDigits ::
19 BinaryDigit
20 BinaryDigits BinaryDigit
21 BinaryDigits NumericLiteralSeparator BinaryDigit
22
23 BinaryDigit :: one of
24 0 1
25
26 negative:
27 phase: parse
28 type: SyntaxError
29
30 features: [numeric-separator-literal]
31 ---*/
32
33 $DONOTEVALUATE();
34
35 0b0_