Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/numeric/numeric-separator-literal-bil-bds-nsl-bd.js

raw
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 `0b` | `0B` BinaryDigits NumericLiteralSeparator BinaryDigit
8 info: |
9 NumericLiteralSeparator ::
10 _
11
12 BinaryIntegerLiteral ::
13 0b BinaryDigits
14 0B BinaryDigits
15
16 BinaryDigits ::
17 BinaryDigit
18 BinaryDigits BinaryDigit
19 BinaryDigits NumericLiteralSeparator BinaryDigit
20
21 BinaryDigit :: one of
22 0 1
23
24 features: [numeric-separator-literal]
25 ---*/
26
27 assert.sameValue(0b01_0, 0b010);
28 assert.sameValue(0B01_0, 0B010);