google / google/closure-compiler

I think parseInt radix should be optional

Open
#3,230 12 comments 0 reactions 0 assignees View on GitHub
good first issue internal-issue-created P4 triage-done
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.