summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-12-29 16:02:44 +0100
committerLinus Groh <mail@linusgroh.de>2021-12-29 16:02:44 +0100
commit87a89e712635a354c6799e10ea0781c7db83149f (patch)
tree37f905aa66d692d799235a0f385019b96b39e0b2 /Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
parent4767be1459546908ec39e781e8aed106adeb4a12 (diff)
downloadserenity-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.h2
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; }