diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-29 00:36:21 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-29 21:29:24 +0300 |
commit | c0bb456fd2753e49f9be990f530d8fd2509c0635 (patch) | |
tree | 7a4c8c8d559bf80a79306f8a94d676784a17e6b2 /Userland/Libraries/LibJS/Runtime/FunctionConstructor.h | |
parent | 47f762ab4278ddc9a5ffe496595da154df489179 (diff) | |
download | serenity-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.h | 2 |
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; |