summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Object.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-10-03 01:35:36 +0100
committerLinus Groh <mail@linusgroh.de>2021-10-03 20:14:03 +0100
commitfe86b04b42f58f71e1f46f7a119a994897b4fdd8 (patch)
tree210c2d40dc7f463e78e8beb189a16e92d6311c5d /Userland/Libraries/LibJS/Runtime/Object.h
parentebf57df431f3d508d72b72024a3904c7de8e08b2 (diff)
downloadserenity-fe86b04b42f58f71e1f46f7a119a994897b4fdd8.zip
LibJS: Convert define_property_or_throw() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Object.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Object.h b/Userland/Libraries/LibJS/Runtime/Object.h
index 8e49134e8b..275a9e57d6 100644
--- a/Userland/Libraries/LibJS/Runtime/Object.h
+++ b/Userland/Libraries/LibJS/Runtime/Object.h
@@ -81,7 +81,7 @@ public:
ThrowCompletionOr<bool> create_method_property(PropertyName const&, Value);
ThrowCompletionOr<bool> create_data_property_or_throw(PropertyName const&, Value);
ThrowCompletionOr<bool> create_non_enumerable_data_property_or_throw(PropertyName const&, Value);
- bool define_property_or_throw(PropertyName const&, PropertyDescriptor const&);
+ ThrowCompletionOr<bool> define_property_or_throw(PropertyName const&, PropertyDescriptor const&);
bool delete_property_or_throw(PropertyName const&);
bool has_property(PropertyName const&) const;
bool has_own_property(PropertyName const&) const;