Skip to content

Fix Date.prototype.toLocaleString() TypeError message for non-Date this#1959

Open
cuiweixie wants to merge 1 commit intofacebook:static_hfrom
cuiweixie:fix/date-tolocalestring-typeerror-message
Open

Fix Date.prototype.toLocaleString() TypeError message for non-Date this#1959
cuiweixie wants to merge 1 commit intofacebook:static_hfrom
cuiweixie:fix/date-tolocalestring-typeerror-message

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

datePrototypeToLocaleStringHelper raised a TypeError with the wrong method name in the message (toString() instead of toLocaleString()). This updates the string to match the actual API.

Test plan

  • Build Hermes; run any existing Date/locale tests if present.

datePrototypeToLocaleStringHelper reported toString() in the error string; align it with the actual method name.
@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