Skip to content

Commit e3d3406

Browse files
gibson042ryzokuken
authored andcommitted
Editorial: Simplify Intl.DurationFormat.prototype.resolvedOptions
1 parent 2ede4f0 commit e3d3406

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spec/durationformat.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,12 @@ <h1>Intl.DurationFormat.prototype.resolvedOptions ( )</h1>
206206
1. Let _p_ be the Property value of the current row.
207207
1. Let _v_ be the value of _df_'s internal slot whose name is the Internal Slot value of the current row.
208208
1. If _p_ is *"fractionalDigits"*, then
209-
1. If _v_ is not *undefined*, set _v_ to 𝔽(_v_).
209+
1. If _v_ is not *undefined*, perform ! CreateDataPropertyOrThrow(_options_, _p_, 𝔽(_v_)).
210210
1. Else,
211211
1. Assert: _v_ is not *undefined*.
212-
1. If _v_ is *"fractional"*, then
213-
1. Assert: The Internal Slot value of the current row is [[MillisecondsStyle]], [[MicrosecondsStyle]], or [[NanosecondsStyle]] .
214-
1. Set _v_ to *"numeric"*.
215-
1. If _v_ is not *undefined*, then
212+
1. If _v_ is *"fractional"*, then
213+
1. Assert: The Internal Slot value of the current row is [[MillisecondsStyle]], [[MicrosecondsStyle]], or [[NanosecondsStyle]] .
214+
1. Set _v_ to *"numeric"*.
216215
1. Perform ! CreateDataPropertyOrThrow(_options_, _p_, _v_).
217216
1. Return _options_.
218217
</emu-alg>

0 commit comments

Comments
 (0)