-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NativePromise can't take callbacks defined with
auto
https://bugs.webkit.org/show_bug.cgi?id=262678 rdar://116505009 Reviewed by Youenn Fablet. Use more modern C++ (C++17) to compute the arguments and prototype of the lambdas passed to whenSettle/then. This allows to use the simpler `auto` declaration. Thanks to Gerald Squelart for providing the technical solution. Fly-by fixes: rename the remaining ResolveReject reference to Settled Added API tests to check that compilation works as expected. * Source/WTF/wtf/NativePromise.h: * Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/268913@main
- Loading branch information
Showing
2 changed files
with
128 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters