Bug 265306
| Summary: | Allow to chain NativePromise::ThenCommand even if it returned void | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | Web Template Framework | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jean-Yves Avenard [:jya]
Currently, to be able to chain promises, the previous then/whenSettled handler must return another NativePromise. We could make it so that if it returns void, it behaves like a revolved GenericPromise was returned.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/118770512>
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/20867
EWS
Committed 271267@main (ab34eaa17f5d): <https://commits.webkit.org/271267@main>
Reviewed commits have been landed. Closing PR #20867 and removing active labels.