Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/numeric/numeric-separator-literal-oil-od-nsl-od.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 `0o` | `0O` OctalDigit NumericLiteralSeparator OctalDigit
8 info: |
9 NumericLiteralSeparator ::
10 _
11
12 OctalIntegerLiteral ::
13 0o OctalDigits
14 0O OctalDigits
15
16 OctalDigits ::
17 OctalDigit
18 OctalDigits OctalDigit
19 OctalDigits NumericLiteralSeparator OctalDigit
20
21 OctalDigit :: one of
22 0 1 2 3 4 5 6 7
23
24 features: [numeric-separator-literal]
25 ---*/
26
27 assert.sameValue(0o0_1, 0o01);
28 assert.sameValue(0O0_1, 0O01);