Bug 301710
| Summary: | Temporal: Adding large microseconds or nanoseconds values can yield wrong results | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Chevalier <tjc> |
| Component: | JavaScriptCore | Assignee: | Tim Chevalier <tjc> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | commit-queue, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 301904 | ||
| Bug Blocks: | |||
Tim Chevalier
```
const pdt = Temporal.PlainDateTime.from("2020-02-29T00:57:27.747612578");
pdt.add(Temporal.Duration.from({microseconds: Number.MAX_SAFE_INTEGER}).toString()
```
Should be:
```
"2305-08-04T00:45:02.488603578"
```
Actual result in JSC:
```
"2305-08-04T00:45:02.488604578"
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tim Chevalier
Pull request: https://github.com/WebKit/WebKit/pull/53211
EWS
Committed 302509@main (ce3c6e45d71d): <https://commits.webkit.org/302509@main>
Reviewed commits have been landed. Closing PR #53211 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/163977265>
WebKit Commit Bot
Re-opened since this is blocked by bug 301904
Tim Chevalier
Pull request: https://github.com/WebKit/WebKit/pull/53413
EWS
Committed 302573@main (db7f4c5396b8): <https://commits.webkit.org/302573@main>
Reviewed commits have been landed. Closing PR #53413 and removing active labels.