Bug 301659
| Summary: | Temporal: Out-of-range date handled incorrectly in add() | ||
|---|---|---|---|
| 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
```
Temporal.PlainDate.from('+275760-01-01').add(Temporal.Duration.from('P5432M5432W'))
```
results in:
```
-271718-10-10
```
but this should throw a RangeError, since 275760 is the maximum year and we are adding more than 12 months.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tim Chevalier
Pull request: https://github.com/WebKit/WebKit/pull/53168
EWS
Committed 302413@main (9b21b88466cf): <https://commits.webkit.org/302413@main>
Reviewed commits have been landed. Closing PR #53168 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/163827419>