summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-12-29 16:00:36 +0100
committerLinus Groh <mail@linusgroh.de>2021-12-29 16:00:36 +0100
commit4767be1459546908ec39e781e8aed106adeb4a12 (patch)
treeffcf6bb78736e1583193b1d13639a893e3bcc5d9 /Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
parent8296d3fbd2e32398f6f35d8d8fe25a0c590f54c3 (diff)
downloadserenity-4767be1459546908ec39e781e8aed106adeb4a12.zip
LibJS: Convert create_global_var_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 e82debaf57..ce77168a82 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
+++ b/Userland/Libraries/LibJS/Runtime/GlobalEnvironment.h
@@ -36,7 +36,7 @@ public:
ThrowCompletionOr<bool> has_restricted_global_property(FlyString const& name) const;
ThrowCompletionOr<bool> can_declare_global_var(FlyString const& name) const;
ThrowCompletionOr<bool> can_declare_global_function(FlyString const& name) const;
- void create_global_var_binding(FlyString const& name, bool can_be_deleted);
+ 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);
private: