1
Fork 0
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:
Linus Groh 2021-10-02 16:03:45 +01:00
parent 4d5bd092ea
commit 867b19affb
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