Skip to content

Commit 7dc4a6d

Browse files
anbaryzokuken
authored andcommitted
Editorial: "languageDisplay" can be undefined in Intl.DisplayNames.prototype.resolvedOptions
The [[LanguageDisplay]] slot can be `undefined`, so the assertion needs to be changed to an If-step.
1 parent 3b780a6 commit 7dc4a6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/displaynames.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ <h1>Intl.DisplayNames.prototype.resolvedOptions ( )</h1>
136136
1. For each row of <emu-xref href="#table-displaynames-resolvedoptions-properties"></emu-xref>, except the header row, in table order, do
137137
1. Let _p_ be the Property value of the current row.
138138
1. Let _v_ be the value of _displayNames_'s internal slot whose name is the Internal Slot value of the current row.
139-
1. Assert: _v_ is not *undefined*.
140-
1. Perform ! CreateDataPropertyOrThrow(_options_, _p_, _v_).
139+
1. If _v_ is not *undefined*, then
140+
1. Perform ! CreateDataPropertyOrThrow(_options_, _p_, _v_).
141141
1. Return _options_.
142142
</emu-alg>
143143

0 commit comments

Comments
 (0)