summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/FunctionConstructor.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-29 00:36:21 +0300
committerIdan Horowitz <idan.horowitz@gmail.com>2021-10-29 21:29:24 +0300
commitc0bb456fd2753e49f9be990f530d8fd2509c0635 (patch)
tree7a4c8c8d559bf80a79306f8a94d676784a17e6b2 /Userland/Libraries/LibJS/Runtime/FunctionConstructor.h
parent47f762ab4278ddc9a5ffe496595da154df489179 (diff)
downloadserenity-c0bb456fd2753e49f9be990f530d8fd2509c0635.zip
LibJS: Convert the CreateDynamicFunction AO to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FunctionConstructor.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/FunctionConstructor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FunctionConstructor.h b/Userland/Libraries/LibJS/Runtime/FunctionConstructor.h
index 426782de44..aa117d3801 100644
--- a/Userland/Libraries/LibJS/Runtime/FunctionConstructor.h
+++ b/Userland/Libraries/LibJS/Runtime/FunctionConstructor.h
@@ -15,7 +15,7 @@ class FunctionConstructor final : public NativeFunction {
JS_OBJECT(FunctionConstructor, NativeFunction);
public:
- static RefPtr<FunctionExpression> create_dynamic_function_node(GlobalObject& global_object, FunctionObject& new_target, FunctionKind kind);
+ static ThrowCompletionOr<RefPtr<FunctionExpression>> create_dynamic_function_node(GlobalObject& global_object, FunctionObject& new_target, FunctionKind kind);
explicit FunctionConstructor(GlobalObject&);
virtual void initialize(GlobalObject&) override;