Change Number.parseInt/parseFloat to not coerce null/undefined/NaN (repo link TBD) S1
Proposal details
- Stage: Stage 1
- Status: Active
- ECMAScript edition: —
- Synchronized: Aug 28, 2026
- 中文译文 · Source repository
Proposal overview
This proposal aims to change the behavior of Number.parseInt and Number.parseFloat so that they do not coerce null, undefined, or NaN arguments, potentially returning NaN instead of the current coerced value. The proposal is currently in an early stage, as indicated by the placeholder for the repository link and empty README. It seeks to improve consistency or predictability of these operations, but details and maturity are not yet fully specified.
The upstream repository does not provide a README.