diff options
author | Linus Groh <mail@linusgroh.de> | 2021-10-09 18:53:25 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-09 21:53:47 +0100 |
commit | 4baf3a91e843e28f983941bd05821cb1db6d0209 (patch) | |
tree | 5f099d57982d33dd19fa9740d49da1011ecf8cd6 /Userland/Libraries/LibJS/Runtime/Environment.h | |
parent | fbb176c926e84d0ed768700ab2af0449de0457ed (diff) | |
download | serenity-4baf3a91e843e28f983941bd05821cb1db6d0209.zip |
LibJS: Convert create_mutable_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 bfab780217..3312cd949f 100644 --- a/Userland/Libraries/LibJS/Runtime/Environment.h +++ b/Userland/Libraries/LibJS/Runtime/Environment.h @@ -34,7 +34,7 @@ public: virtual Object* with_base_object() const { return nullptr; } virtual ThrowCompletionOr<bool> has_binding([[maybe_unused]] FlyString const& name, [[maybe_unused]] Optional<size_t>* out_index = nullptr) const { return false; } - virtual void create_mutable_binding(GlobalObject&, [[maybe_unused]] FlyString const& name, [[maybe_unused]] bool can_be_deleted) { } + virtual ThrowCompletionOr<void> create_mutable_binding(GlobalObject&, [[maybe_unused]] FlyString const& name, [[maybe_unused]] bool can_be_deleted) { return {}; } virtual void create_immutable_binding(GlobalObject&, [[maybe_unused]] FlyString const& name, [[maybe_unused]] bool strict) { } virtual void initialize_binding(GlobalObject&, [[maybe_unused]] FlyString const& name, Value) { } virtual void set_mutable_binding(GlobalObject&, [[maybe_unused]] FlyString const& name, Value, [[maybe_unused]] bool strict) { } |