diff options
author | Linus Groh <mail@linusgroh.de> | 2021-10-09 16:52:34 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-09 21:53:47 +0100 |
commit | 0aa24f4ce5e91b6f0b749d328be150322d4e9c14 (patch) | |
tree | 4e5725d444e665eaa147faca24dac10bb2b8fc96 /Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h | |
parent | 4f0313897131676b58ff2a5f374b35133e5cbb14 (diff) | |
download | serenity-0aa24f4ce5e91b6f0b749d328be150322d4e9c14.zip |
LibJS: Convert get_this_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 c1e789e7ac..394d4cc6c9 100644 --- a/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h +++ b/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h @@ -17,7 +17,7 @@ public: GlobalEnvironment(GlobalObject&, Object& this_value); virtual bool has_this_binding() const final { return true; } - virtual Value get_this_binding(GlobalObject&) const final; + virtual ThrowCompletionOr<Value> get_this_binding(GlobalObject&) const final; virtual bool has_binding(FlyString const& name, Optional<size_t>* = nullptr) const override; virtual void create_mutable_binding(GlobalObject&, FlyString const& name, bool can_be_deleted) override; |