blob: 0721ea9856c2f8f88a5c299870edf6c7466431e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2017 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-tonumber-applied-to-the-string-type
description: 0o StrOctalDigits, 0O StrOctalDigits
info: |
StrOctalLiteral :::
0o StrOctalDigits
0O StrOctalDigits
StrOctalDigits :::
OctalDigit
StrOctalDigits OctalDigit
---*/
assert.sameValue(parseFloat("0o0_1"), 0o0);
assert.sameValue(parseFloat("0O0_1"), 0O0);
|