DescriptionparseInt was broken because:
* it ignored the second "radix" argument
* removed signs from numbers
* turned 0 into NaN
* turned hex numbers into 0
This change fixes this by detecting when parseInt is called with an
octal number and in heuristic mode and explicitly passes a radix of 10. In
all other cases, it calls the browser's parseInt with the given number and radix
@4552
Patch Set 1 #
Total comments: 6
Patch Set 2 : Fix parsing numbers using parseInt #Patch Set 3 : Fix parsing numbers using parseInt #
Total comments: 1
MessagesTotal messages: 4
|
||||||||||||||||||||||||||||