diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-29 00:13:41 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-29 23:49:53 +0100 |
commit | 73bae7d779ebbf14eec603d8619f4d5247a6e69a (patch) | |
tree | 85ef6f46da8ff1dd50d1295921fa0b211ac0970a /Userland/Services | |
parent | 9b4362f10a5a87470f43c1086717daa9ce04bb08 (diff) | |
download | serenity-73bae7d779ebbf14eec603d8619f4d5247a6e69a.zip |
LibJS: Convert internal_prevent_extensions() to ThrowCompletionOr
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WebContent/ConsoleGlobalObject.cpp | 2 | ||||
-rw-r--r-- | Userland/Services/WebContent/ConsoleGlobalObject.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/WebContent/ConsoleGlobalObject.cpp b/Userland/Services/WebContent/ConsoleGlobalObject.cpp index 9b9ae85335..2fdfc27366 100644 --- a/Userland/Services/WebContent/ConsoleGlobalObject.cpp +++ b/Userland/Services/WebContent/ConsoleGlobalObject.cpp @@ -52,7 +52,7 @@ JS::ThrowCompletionOr<bool> ConsoleGlobalObject::internal_is_extensible() const return m_window_object->internal_is_extensible(); } -bool ConsoleGlobalObject::internal_prevent_extensions() +JS::ThrowCompletionOr<bool> ConsoleGlobalObject::internal_prevent_extensions() { return m_window_object->internal_prevent_extensions(); } diff --git a/Userland/Services/WebContent/ConsoleGlobalObject.h b/Userland/Services/WebContent/ConsoleGlobalObject.h index c0ded11f0e..427dbaa0a9 100644 --- a/Userland/Services/WebContent/ConsoleGlobalObject.h +++ b/Userland/Services/WebContent/ConsoleGlobalObject.h @@ -26,7 +26,7 @@ public: virtual JS::ThrowCompletionOr<Object*> internal_get_prototype_of() const override; virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(Object* prototype) override; virtual JS::ThrowCompletionOr<bool> internal_is_extensible() const override; - virtual bool internal_prevent_extensions() override; + virtual JS::ThrowCompletionOr<bool> internal_prevent_extensions() override; virtual Optional<JS::PropertyDescriptor> internal_get_own_property(JS::PropertyName const& name) const override; virtual bool internal_define_own_property(JS::PropertyName const& name, JS::PropertyDescriptor const& descriptor) override; virtual bool internal_has_property(JS::PropertyName const& name) const override; |