1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibWeb: Convert all generated bindings to ThrowCompletionOr

This also required converting URLSearchParams::for_each and the callback
function it invokes to ThrowCompletionOr. With this, the ReturnType enum
used by WrapperGenerator is removed as all callers would be using
ReturnType::Completion.
This commit is contained in:
Timothy Flynn 2021-10-31 10:03:29 -04:00 committed by Linus Groh
parent 19ac19eae1
commit c19c306744
3 changed files with 120 additions and 220 deletions

View file

@ -43,7 +43,8 @@ public:
String to_string();
void for_each(Function<IterationDecision(String const&, String const&)>);
using ForEachCallback = Function<JS::ThrowCompletionOr<void>(String const&, String const&)>;
JS::ThrowCompletionOr<void> for_each(ForEachCallback);
private:
friend class URL;