Bug 278440
| Summary: | [JSC] Fix error message of `Temporal.Instant.fromEpochMilliseconds` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
In the current JSC, the `RangeError` message is corrupted when an invalid value is passed to
`Temporal.Instant.fromEpochMilliseconds`.
For example, `Temporal.Instant.fromEpochMilliseconds(86400_0000_0000_001)` throws a `RangeError`
with the message `56545248484848484848484848484849484848484848 epoch nanoseconds is outside of
supported range for Temporal.Instant`. This is clearly broken.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/32503
EWS
Committed 282587@main (df250e04fa34): <https://commits.webkit.org/282587@main>
Reviewed commits have been landed. Closing PR #32503 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/134454596>