Bug 301717
| Summary: | Temporal: toString() returns wrong results for certain Instants with negative microseconds/nanoseconds | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Chevalier <tjc> |
| Component: | JavaScriptCore | Assignee: | Tim Chevalier <tjc> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Tim Chevalier
The following:
```
(new Temporal.Instant(-1000000000000001000n)).toString()
```
prints
```
"1938-04-24T22:13:20.999999Z"
```
The result should be:
```
1938-04-24T22:13:19.999Z
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tim Chevalier
Correction: the result should be:
```
'1938-04-24T22:13:19.999999Z'
```
Tim Chevalier
Pull request: https://github.com/WebKit/WebKit/pull/53223
EWS
Committed 302460@main (6294e8df2ea0): <https://commits.webkit.org/302460@main>
Reviewed commits have been landed. Closing PR #53223 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/163901281>