Skip to content

Implement Intl.supportedValuesOf - #2136

Open
philipheinser wants to merge 1 commit into
facebook:static_hfrom
philipheinser:static_h
Open

Implement Intl.supportedValuesOf#2136
philipheinser wants to merge 1 commit into
facebook:static_hfrom
philipheinser:static_h

Conversation

@philipheinser

Copy link
Copy Markdown

Summary

  • Add Intl.supportedValuesOf for calendar, collation, currency, numberingSystem, timeZone, and unit.
  • Invalid keys throw RangeError. Time zone results are sorted, unique, include UTC, and omit Etc/UTC / Etc/GMT.
  • Fixes the TypeError from Intl.supportedValuesOf('timeZone') not being a function.

Fixes #910

Test plan

  • test/hermes/intl/supported-values-of.js
  • test/hermes/intl/intl.js
  • test/shermes/intl/supported-values-of.js

Hermes was missing this ECMA-402 method, so calls like
Intl.supportedValuesOf('timeZone') threw TypeError.

Co-authored-by: Cursor <cursoragent@cursor.com>
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 16, 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.

Intl supportedValuesOf crashes

1 participant