mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibJS: Convert NativeFunction callback to ThrowCompletionOr
This commit is contained in:
parent
20163c0584
commit
ca27e5eff5
13 changed files with 91 additions and 65 deletions
|
@ -25,7 +25,7 @@ class PromiseResolvingFunction final : public NativeFunction {
|
|||
JS_OBJECT(PromiseResolvingFunction, NativeFunction);
|
||||
|
||||
public:
|
||||
using FunctionType = Function<Value(VM&, GlobalObject&, Promise&, AlreadyResolved&)>;
|
||||
using FunctionType = Function<ThrowCompletionOr<Value>(VM&, GlobalObject&, Promise&, AlreadyResolved&)>;
|
||||
|
||||
static PromiseResolvingFunction* create(GlobalObject&, Promise&, AlreadyResolved&, FunctionType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue