google/closure-compiler

I think parseInt radix should be optional

Open

#3230 aperta il 12 feb 2019

Vedi su GitHub
 (12 commenti) (0 reazioni) (0 assegnatari)Java (1197 fork)batch import
P4good first issueinternal-issue-createdtriage-done

Metriche repository

Star
 (7176 star)
Metriche merge PR
 (Merge medio 12g 15h) (1 PR mergiata in 30 g)

Descrizione

I understand why this is. But if feels like a very old legacy issue...

https://github.com/google/closure-compiler/blob/b29d09f56b56e5b3ea78ba0317ae579b837fd821/externs/es3.js#L289-L300

Nowdays all browser use radix 10 as default and has done so for a long time. And the likelihood of someone starting the number with 0 and using IE8 is very slim. Many have stop supporting old browsers

* @param {number=} base 

Guida contributor