Skip to content

Fix Number.prototype.toFixed comment for fraction digit range#1961

Open
cuiweixie wants to merge 1 commit intofacebook:static_hfrom
cuiweixie:fix/number-tofixed-comment-range
Open

Fix Number.prototype.toFixed comment for fraction digit range#1961
cuiweixie wants to merge 1 commit intofacebook:static_hfrom
cuiweixie:fix/number-tofixed-comment-range

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

Align the inline comment above numberPrototypeToFixed with the actual validation: fraction digits are constrained to 0–100 (per spec step 3 and the RangeError message), not 0–20.

Test plan

  • Comment-only change; no runtime behavior change.

The comment said 0 <= f <= 20, but the implementation validates 0-100 to match the spec and RangeError message.
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant