| Summary: | [JSC] Temporal.PlainDate should validate input range | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||||||||
| Component: | New Bugs | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | benjamin, cdumez, cmarcelo, darin, ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Yusuke Suzuki
2022-02-20 01:41:22 PST
Created attachment 452687 [details]
Patch
Comment on attachment 452687 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452687&action=review > JSTests/ChangeLog:3 > + [JSC] Temporal.PlainDate should validate input range I think we’d want the test for the last valid as well as the first invalid. Comment on attachment 452687 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452687&action=review >> JSTests/ChangeLog:3 >> + [JSC] Temporal.PlainDate should validate input range > > I think we’d want the test for the last valid as well as the first invalid. Sounds good, added. Created attachment 452776 [details]
Patch
Created attachment 452778 [details]
Patch
Created attachment 452781 [details]
Patch
Comment on attachment 452781 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452781&action=review review+ assuming the tests pass > JSTests/stress/temporal-plaindate.js:114 > +new Temporal.PlainDate(0x43530, 9, 13); Maybe a shouldBe about the string form? > JSTests/stress/temporal-plaindate.js:116 > +new Temporal.PlainDate(-0x425cd, 4, 20); Ditto. Comment on attachment 452781 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452781&action=review Thank you! >> JSTests/stress/temporal-plaindate.js:114 >> +new Temporal.PlainDate(0x43530, 9, 13); > > Maybe a shouldBe about the string form? Done. >> JSTests/stress/temporal-plaindate.js:116 >> +new Temporal.PlainDate(-0x425cd, 4, 20); > > Ditto. Done. Committed r290282 (?): <https://commits.webkit.org/r290282> |