This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.
parseInt has a different type in Closure #42
Open
Description
Closure defines parseInt as having a required second argument. I think this is to handle the common mistake of doing parseInt(user_input)
, which does a surprising thing (octal) when user input starts with a leading 0.
For sickle's purposes, we'll need to figure out something. Ideas:
- adjust the TypeScript typings for
parseInt
- coerce
parseInt
to undo the Closure check (which is a little disappointing)