diff options
author | Linus Groh <mail@linusgroh.de> | 2021-10-09 19:49:08 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-09 21:53:47 +0100 |
commit | 01370136eebfaa9e1126b9b70ff5232f7dfb3be7 (patch) | |
tree | 564f9b4c7f80ea7a50450d7e6ff5cf40817057c5 /Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h | |
parent | f35e2680241d2f733c54a2e6917e2a308e8bda2c (diff) | |
download | serenity-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.h | 2 |
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; } |