mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:18:12 +00:00
LibJS: Convert install_error_cause() to ThrowCompletionOr
This commit is contained in:
parent
4d5bd092ea
commit
867b19affb
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