diff options
author | Linus Groh <mail@linusgroh.de> | 2021-12-29 16:02:44 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-12-29 16:02:44 +0100 |
commit | 87a89e712635a354c6799e10ea0781c7db83149f (patch) | |
tree | 37f905aa66d692d799235a0f385019b96b39e0b2 /Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h | |
parent | 4767be1459546908ec39e781e8aed106adeb4a12 (diff) | |
download | serenity-87a89e712635a354c6799e10ea0781c7db83149f.zip |
LibJS: Convert create_global_function_binding() to ThrowCompletionOr
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 ce77168a82..51a20f7b2b 100644 --- a/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h +++ b/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h @@ -37,7 +37,7 @@ public: ThrowCompletionOr<bool> can_declare_global_var(FlyString const& name) const; ThrowCompletionOr<bool> can_declare_global_function(FlyString const& name) const; ThrowCompletionOr<void> create_global_var_binding(FlyString const& name, bool can_be_deleted); - void create_global_function_binding(FlyString const& name, Value, bool can_be_deleted); + ThrowCompletionOr<void> create_global_function_binding(FlyString const& name, Value, bool can_be_deleted); private: virtual bool is_global_environment() const override { return true; } |