Closed
Description
Action
Execute the following code:
const res = parseInt("0 meters", 10);
see also example in Online-Editor
Expected Behavior
res
is 0
Observed Behavior
res
is NaN
The false behavior is tied to the number being a 0
("1 meter" works) and thus I suspect that the requirement
If radix is undefined or 0, it is assumed to be 10 except when the number begins with the code unit pairs 0x or 0X, in which case a radix of 16 is assumed.
is not implemented correctly.