Skip to content

Commit

Permalink
Fix spec text for ZonedDateTime.from to always return a new object
Browse files Browse the repository at this point in the history
Closes: #341
  • Loading branch information
ptomato committed Jan 13, 2021
1 parent 38f6d91 commit bf669d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/zoneddatetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ <h1>Temporal.ZonedDateTime.from ( _item_ [ , _options_ ] )</h1>
1. Let _overflow_ be ? ToTemporalOverflow(_options_).
1. Let _disambiguation_ be ? ToTemporalDisambiguation(_options_).
1. Let _offset_ be ? ToTemporalOffset(_options_).
1. If Type(_item_) is Object and _item_ has an [[InitializedTemporalZonedDateTime]] internal slot, then
1. Return ? CreateTemporalZonedDateTimeFromStatic(_constructor_, _item_.[[Nanoseconds]], _item_.[[TimeZone]], _item_.[[Calendar]]).
1. Return ? ToTemporalZonedDateTime(_item_, _constructor_, _overflow_, _disambiguation_, _offset_).
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit bf669d8

Please sign in to comment.