LibJS: Convert the CreateDynamicFunction AO to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-10-29 00:36:21 +03:00
commit c0bb456fd2
Notes: sideshowbarker 2024-07-18 01:47:18 +09:00
3 changed files with 8 additions and 13 deletions

View file

@ -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;