summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-10-09 19:49:08 +0100
committerLinus Groh <mail@linusgroh.de>2021-10-09 21:53:47 +0100
commit01370136eebfaa9e1126b9b70ff5232f7dfb3be7 (patch)
tree564f9b4c7f80ea7a50450d7e6ff5cf40817057c5 /Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
parentf35e2680241d2f733c54a2e6917e2a308e8bda2c (diff)
downloadserenity-01370136eebfaa9e1126b9b70ff5232f7dfb3be7.zip
LibJS: Convert delete_binding() to ThrowCompletionOr
Also add spec step comments to it while we're here.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h b/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
index 27863b0178..8379fb326c 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
+++ b/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
@@ -25,7 +25,7 @@ public:
virtual ThrowCompletionOr<void> initialize_binding(GlobalObject&, FlyString const& name, Value) override;
virtual ThrowCompletionOr<void> set_mutable_binding(GlobalObject&, FlyString const& name, Value, bool strict) override;
virtual ThrowCompletionOr<Value> get_binding_value(GlobalObject&, FlyString const& name, bool strict) override;
- virtual bool delete_binding(GlobalObject&, FlyString const& name) override;
+ virtual ThrowCompletionOr<bool> delete_binding(GlobalObject&, FlyString const& name) override;
ObjectEnvironment& object_record() { return *m_object_record; }
Object& global_this_value() { return *m_global_this_value; }