summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-10-09 19:34:54 +0100
committerLinus Groh <mail@linusgroh.de>2021-10-09 21:53:47 +0100
commit7652138ce009793055ce2d2e19847d509251dc38 (patch)
treeedf96e2bd2fcb724004ab1fb615f1ceb0c72f62d /Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h
parentae397541fb47f339f481246b46a9bfe60bfb43da (diff)
downloadserenity-7652138ce009793055ce2d2e19847d509251dc38.zip
LibJS: Convert set_mutable_binding() to ThrowCompletionOr
Also add spec step comments to it while we're here.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h b/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h
index fa068cd193..0c11366585 100644
--- a/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h
+++ b/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h
@@ -24,7 +24,7 @@ public:
virtual ThrowCompletionOr<void> create_mutable_binding(GlobalObject&, FlyString const& name, bool can_be_deleted) override;
virtual ThrowCompletionOr<void> create_immutable_binding(GlobalObject&, FlyString const& name, bool strict) override;
virtual ThrowCompletionOr<void> initialize_binding(GlobalObject&, FlyString const& name, Value) override;
- virtual void set_mutable_binding(GlobalObject&, FlyString const& name, Value, bool strict) override;
+ virtual ThrowCompletionOr<void> set_mutable_binding(GlobalObject&, FlyString const& name, Value, bool strict) override;
virtual Value get_binding_value(GlobalObject&, FlyString const& name, bool strict) override;
virtual bool delete_binding(GlobalObject&, FlyString const& name) override;