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/Environment.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/Environment.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Environment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Environment.h b/Userland/Libraries/LibJS/Runtime/Environment.h index b4fdd07f18..ec94a3b1e3 100644 --- a/Userland/Libraries/LibJS/Runtime/Environment.h +++ b/Userland/Libraries/LibJS/Runtime/Environment.h @@ -39,7 +39,7 @@ public: virtual ThrowCompletionOr<void> initialize_binding(GlobalObject&, [[maybe_unused]] FlyString const& name, Value) { return {}; } virtual ThrowCompletionOr<void> set_mutable_binding(GlobalObject&, [[maybe_unused]] FlyString const& name, Value, [[maybe_unused]] bool strict) { return {}; } virtual ThrowCompletionOr<Value> get_binding_value(GlobalObject&, [[maybe_unused]] FlyString const& name, [[maybe_unused]] bool strict) { return Value {}; } - virtual bool delete_binding(GlobalObject&, [[maybe_unused]] FlyString const& name) { return false; } + virtual ThrowCompletionOr<bool> delete_binding(GlobalObject&, [[maybe_unused]] FlyString const& name) { return false; } // [[OuterEnv]] Environment* outer_environment() { return m_outer_environment; } |