tc39 / proposal-number-fromstring

{BigInt,Number}.fromString(string, radix)
https://mathiasbynens.github.io/proposal-number-fromstring/
65 stars 7 forks source link

ToInt32(_radix_) #12

Closed Yaffle closed 6 years ago

Yaffle commented 6 years ago

the radix argument handling should match the one defined for Number#toString if it is a counterpart

If radix is not present, let radixNumber be 10.
Else if radix is undefined, let radixNumber be 10.
Else, let radixNumber be ? ToInteger(radix).
If radixNumber < 2 or radixNumber > 36, throw a RangeError exception.