diff --git a/spec/intl.html b/spec/intl.html index 181602f5f..459be0b7d 100644 --- a/spec/intl.html +++ b/spec/intl.html @@ -1721,12 +1721,18 @@

Properties of the Temporal.Duration Prototype Object

Temporal.Duration.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )

- -

- This function is currently not specified. - See the Intl.DurationFormat proposal. -

-
+

This definition supersedes the definition provided in .

+

This method performs the following steps when called:

+ + 1. Let _duration_ be the *this* value. + 1. Perform ? RequireInternalSlot(_duration_, [[InitializedTemporalDuration]]). + 1. Let _formatter_ be ? Construct(%Intl.DurationFormat%, « _locales_, _options_ »). + 1. Let _parts_ be PartitionDurationFormatPattern(_formatter_, _duration_). + 1. Let _result_ be the empty String. + 1. For each Record _part_ in _parts_, do + 1. Set _result_ to the string-concatenation of _result_ and _part_.[[Value]]. + 1. Return _result_. +