1
0
Fork 0
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:
Linus Groh 2021-10-02 16:03:45 +01:00
parent 4d5bd092ea
commit 867b19affb
Notes: sideshowbarker 2024-07-18 03:07:52 +09:00
4 changed files with 25 additions and 19 deletions

View file

@ -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