diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-28 23:30:17 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-29 23:49:53 +0100 |
commit | 5148150e1ccdce78c84d848dd873bc31b247c781 (patch) | |
tree | e36429195f695cb4307a0903d71d52e69a7c11b0 /Userland/Services/WebContent/ConsoleGlobalObject.cpp | |
parent | c8bf7f9c41cde8a77799426ca8ed037852ba5942 (diff) | |
download | serenity-5148150e1ccdce78c84d848dd873bc31b247c781.zip |
LibJS: Convert internal_get_prototype_of() to ThrowCompletionOr
Diffstat (limited to 'Userland/Services/WebContent/ConsoleGlobalObject.cpp')
-rw-r--r-- | Userland/Services/WebContent/ConsoleGlobalObject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/ConsoleGlobalObject.cpp b/Userland/Services/WebContent/ConsoleGlobalObject.cpp index 2452185168..db79202572 100644 --- a/Userland/Services/WebContent/ConsoleGlobalObject.cpp +++ b/Userland/Services/WebContent/ConsoleGlobalObject.cpp @@ -5,6 +5,7 @@ */ #include "ConsoleGlobalObject.h" +#include <LibJS/Runtime/Completion.h> #include <LibWeb/Bindings/NodeWrapper.h> #include <LibWeb/Bindings/NodeWrapperFactory.h> #include <LibWeb/Bindings/WindowObject.h> @@ -36,7 +37,7 @@ void ConsoleGlobalObject::visit_edges(Visitor& visitor) visitor.visit(m_window_object); } -JS::Object* ConsoleGlobalObject::internal_get_prototype_of() const +JS::ThrowCompletionOr<JS::Object*> ConsoleGlobalObject::internal_get_prototype_of() const { return m_window_object->internal_get_prototype_of(); } |