Skip to content

Commit

Permalink
Mention toTemporalInstant RangeError
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Jan 20, 2025
1 parent 1a21ed6 commit 3fd90b9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ None.

A new {{jsxref("Temporal.Instant")}} object with the same {{jsxref("Temporal/Instant/epochMilliseconds", "epochMilliseconds")}} value as this date's timestamp. Its microsecond and nanosecond components are always `0`.

### Exceptions

- {{jsxref("RangeError")}}
- : Thrown if the date is [invalid](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_epoch_timestamps_and_invalid_date) (it has a timestamp of `NaN`).

## Examples

### Using toTemporalInstant()
Expand Down

0 comments on commit 3fd90b9

Please sign in to comment.