diff options
author | Linus Groh <mail@linusgroh.de> | 2021-10-09 19:00:06 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-09 21:53:47 +0100 |
commit | 2691c656390f8cb699867f57cc2b762e1645d9f9 (patch) | |
tree | 1106e03d84aedd43dc8a88c1ec4f915aed413735 /Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h | |
parent | 4baf3a91e843e28f983941bd05821cb1db6d0209 (diff) | |
download | serenity-2691c656390f8cb699867f57cc2b762e1645d9f9.zip |
LibJS: Convert create_immutable_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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h b/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h index ea4d4c4ab8..54d685e666 100644 --- a/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h +++ b/Userland/Libraries/LibJS/Runtime/ObjectEnvironment.h @@ -22,7 +22,7 @@ public: virtual ThrowCompletionOr<bool> has_binding(FlyString const& name, Optional<size_t>* = nullptr) const override; virtual ThrowCompletionOr<void> create_mutable_binding(GlobalObject&, FlyString const& name, bool can_be_deleted) override; - virtual void create_immutable_binding(GlobalObject&, FlyString const& name, bool strict) override; + virtual ThrowCompletionOr<void> create_immutable_binding(GlobalObject&, FlyString const& name, bool strict) override; virtual void initialize_binding(GlobalObject&, FlyString const& name, Value) override; virtual void set_mutable_binding(GlobalObject&, FlyString const& name, Value, bool strict) override; virtual Value get_binding_value(GlobalObject&, FlyString const& name, bool strict) override; |