Part 4: Refactor implementation of TemporalPlainDate/prototype/add#49776
Conversation
|
EWS run on previous version of this PR (hash 5ca9835) Details |
|
@catamorphism is out today, so here's my attempt to move the Temporal implementation forward on his behalf - note that he wrote all the code here! The only change I made is to fix up the cast style as per #45603 (comment). |
|
Can you make the commits and PRs follow the WebKit style? There should be one commit per PR. |
Sure. I initially left it separate so it was clear what changes I made to Tim's code. |
5ca9835 to
a791524
Compare
|
EWS run on previous version of this PR (hash a791524) Details |
a791524 to
432b163
Compare
|
EWS run on previous version of this PR (hash 432b163) Details |
432b163 to
193ec95
Compare
|
EWS run on previous version of this PR (hash 193ec95) Details |
|
@sosukesuzuki I think I've addressed all the comments and the tests are now green. (the jsc-armv7-tests is an unrelated failure and I understand it is being looked into) |
193ec95 to
3a58783
Compare
|
EWS run on previous version of this PR (hash 3a58783) Details |
|
@ptomato - can you raise bugzilla bug and add it to commit message, it makes it easy in case, if we ned to revert and track (caused by) bugs? |
3a58783 to
0bd083b
Compare
|
EWS run on current version of this PR (hash 0bd083b) Details |
|
Done. |
https://bugs.webkit.org/show_bug.cgi?id=223166 Reviewed by Sosuke Suzuki. Add a new operation from the spec, TemporalCalendar::addDurationToDate(), and use it in the implementation of `add`. This is a refactoring and shouldn't change anything. (For reference, modifications by Philip Chimento to address review comments:) * Remove ISO8601::isValidISODate() and ISO8601::createISODateRecord() since they are not used yet in this PR. * Expose JSC::checkedCastDoubleToInt128 in ISO8601.h header. * Replace C-style double-to-Int128 casts with checked casts. * Assert that TemporalDuration::timeDurationFromComponents and add24HourDaysToTimeDuration do not overflow. (The limits on individual Duration components should ensure that.) Canonical link: https://commits.webkit.org/299436@main
0bd083b to
707926f
Compare
|
Committed 299436@main (707926f): https://commits.webkit.org/299436@main Reviewed commits have been landed. Closing PR #49776 and removing active labels. |
🧪 bindings
707926f
0bd083b
🧪 wpe-wk2🧪 win-tests🧪 ios-wk2-wpt🛠 playstation