mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
24 lines
535 B
JavaScript
24 lines
535 B
JavaScript
// 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: 0b StrBinaryDigits, 0B StrBinaryDigits
|
|
info: |
|
|
|
|
StrBinaryIntegerLiteral :::
|
|
0b StrBinaryDigits
|
|
0B StrBinaryDigits
|
|
|
|
StrBinaryDigits :::
|
|
BinaryDigit
|
|
StrBinaryDigits BinaryDigit
|
|
|
|
BinaryDigit ::: one of
|
|
0 1
|
|
|
|
---*/
|
|
|
|
assert.sameValue(parseFloat("0b01_00"), 0b01);
|
|
assert.sameValue(parseFloat("0B01_00"), 0B01);
|