mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibJS: Convert the CreateDynamicFunction AO to ThrowCompletionOr
This commit is contained in:
parent
47f762ab42
commit
c0bb456fd2
Notes:
sideshowbarker
2024-07-18 01:47:18 +09:00
Author: https://github.com/IdanHo
Commit: c0bb456fd2
Pull-request: https://github.com/SerenityOS/serenity/pull/10675
Reviewed-by: https://github.com/linusg ✅
3 changed files with 8 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue