summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-29 00:02:05 +0100
committerLinus Groh <mail@linusgroh.de>2021-09-29 23:49:53 +0100
commit9b4362f10a5a87470f43c1086717daa9ce04bb08 (patch)
treeed3c084dc916a6960092a29f4f54feb6c9d6845d /Userland/Libraries/LibWeb/Bindings
parent8c81c84c1815d11e3ddbb1ca54a35b1e80cd617d (diff)
downloadserenity-9b4362f10a5a87470f43c1086717daa9ce04bb08.zip
LibJS: Convert internal_is_extensible() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/LocationObject.cpp2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/LocationObject.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp b/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
index 86eeff93d9..df1b069154 100644
--- a/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
@@ -133,7 +133,7 @@ JS::ThrowCompletionOr<bool> LocationObject::internal_set_prototype_of(Object* pr
}
// https://html.spec.whatwg.org/multipage/history.html#location-isextensible
-bool LocationObject::internal_is_extensible() const
+JS::ThrowCompletionOr<bool> LocationObject::internal_is_extensible() const
{
// 1. Return true.
return true;
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationObject.h b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
index 8f24d01a39..39af96818c 100644
--- a/Userland/Libraries/LibWeb/Bindings/LocationObject.h
+++ b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
@@ -22,7 +22,7 @@ public:
virtual ~LocationObject() override;
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(Object* prototype) override;
- virtual bool internal_is_extensible() const override;
+ virtual JS::ThrowCompletionOr<bool> internal_is_extensible() const override;
virtual bool internal_prevent_extensions() override;
// FIXME: There should also be a custom [[GetPrototypeOf]], [[GetOwnProperty]], [[DefineOwnProperty]], [[Get]], [[Set]], [[Delete]] and [[OwnPropertyKeys]],