Skip to content

Editorial: "languageDisplay" can be undefined in Intl.DisplayNames.prototype.resolvedOptions - #1037

Merged
ryzokuken merged 1 commit into
tc39:mainfrom
anba:displaynames-resolved-language-display
Dec 4, 2025
Merged

Editorial: "languageDisplay" can be undefined in Intl.DisplayNames.prototype.resolvedOptions#1037
ryzokuken merged 1 commit into
tc39:mainfrom
anba:displaynames-resolved-language-display

Conversation

@anba

@anba anba commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

The [[LanguageDisplay]] slot can be undefined, so the assertion needs to be changed to an If-step.

…ototype.resolvedOptions

The [[LanguageDisplay]] slot can be `undefined`, so the assertion needs
to be changed to an If-step.
@ryzokuken

ryzokuken commented Dec 4, 2025

Copy link
Copy Markdown
Member

Given step 20 here this is clearly the correct approach and the original spec must've had this oversight so I'll merge this right away.

@ryzokuken
ryzokuken merged commit 7dc4a6d into tc39:main Dec 4, 2025
2 checks passed
@FrankYFTang

Copy link
Copy Markdown
Contributor

I confirm that v8 always implemented the after change behavior.

@sffc

sffc commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants