Skip to content

Commit

Permalink
editorial: call UnwrapNumberFormat in NumberFormat.prototype.formatTo…
Browse files Browse the repository at this point in the history
…Parts

Call UnwrapNumberFormat in Intl.NumberFormat.prototype.formatToParts in
order to make it more consistent to format and resolvedOptions.

Fixes: tc39#274
  • Loading branch information
ryzokuken committed Sep 28, 2018
1 parent c7becf7 commit 225daba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ <h1>Intl.NumberFormat.prototype.formatToParts ( _value_ )</h1>
<emu-alg>
1. Let _nf_ be the *this* value.
1. If Type(_nf_) is not Object, throw a *TypeError* exception.
1. If _nf_ does not have an [[InitializedNumberFormat]] internal slot, throw a *TypeError* exception.
1. Let _nf_ be ? UnwrapNumberFormat(_nf_).
1. Let _x_ be ? ToNumber(_value_).
1. Return ? FormatNumberToParts(_nf_, _x_).
</emu-alg>
Expand Down

0 comments on commit 225daba

Please sign in to comment.