For AI agents: the complete documentation index is available at /tc39-atlas/llms.txt, the full documentation bundle is available at /tc39-atlas/llms-full.txt, and this page is available as Markdown at /tc39-atlas/proposals/year/pending/change-number-parseint-parsefloat-to-not-coerce-null-undefined-nan-repo-link-tbd.md.
  • 简体中文
  • Change Number.parseInt/parseFloat to not coerce null/undefined/NaN (repo link TBD) S1

    中文标题:修改 Number.parseInt/parseFloat 以不强制转换 null/undefined/NaN(仓库链接待定)

    提案概览
    提案速览

    该提案旨在修改 Number.parseInt 和 Number.parseFloat 的行为,使它们不再对 null、undefined 或 NaN 参数进行强制转换,可能改为返回 NaN 而非当前的转换值。目前该提案处于早期阶段,因为仓库链接和 README 均为占位符。它旨在提高这些操作的一致性或可预测性,但细节和成熟度尚未完全明确。

    Warning

    上游仓库未提供 README。