Skip to content

Fix Date.prototype.toLocaleDateString() TypeError message for non-Date this#1960

Open
cuiweixie wants to merge 1 commit intofacebook:static_hfrom
cuiweixie:fix/intl-tolocaledatestring-typeerror-message
Open

Fix Date.prototype.toLocaleDateString() TypeError message for non-Date this#1960
cuiweixie wants to merge 1 commit intofacebook:static_hfrom
cuiweixie:fix/intl-tolocaledatestring-typeerror-message

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

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

Test plan

  • Build Hermes; run Intl/Date-related tests if present.

…e this

intlDatePrototypeToLocaleDateString reported toLocaleString() 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