mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibJS: Convert install_error_cause() to ThrowCompletionOr
This commit is contained in:
parent
4d5bd092ea
commit
867b19affb
Notes:
sideshowbarker
2024-07-18 03:07:52 +09:00
Author: https://github.com/linusg
Commit: 867b19affb
Pull-request: https://github.com/SerenityOS/serenity/pull/10327
Reviewed-by: https://github.com/IdanHo ✅
4 changed files with 25 additions and 19 deletions
|
@ -8,6 +8,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
namespace JS {
|
||||
|
@ -22,7 +23,7 @@ public:
|
|||
explicit Error(Object& prototype);
|
||||
virtual ~Error() override = default;
|
||||
|
||||
void install_error_cause(Value options);
|
||||
ThrowCompletionOr<void> install_error_cause(Value options);
|
||||
};
|
||||
|
||||
// NOTE: Making these inherit from Error is not required by the spec but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue