mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS: Fix the prototype of AsyncFunctionDriverWrapper's Promise base
This commit is contained in:
parent
8ceef031e8
commit
4c300cc5e8
Notes:
sideshowbarker
2024-07-17 08:01:29 +09:00
Author: https://github.com/linusg
Commit: 4c300cc5e8
Pull-request: https://github.com/SerenityOS/serenity/pull/14973
Reviewed-by: https://github.com/davidot ✅
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ ThrowCompletionOr<Value> AsyncFunctionDriverWrapper::create(GlobalObject& global
|
|||
}
|
||||
|
||||
AsyncFunctionDriverWrapper::AsyncFunctionDriverWrapper(GlobalObject& global_object, GeneratorObject* generator_object)
|
||||
: Promise(global_object)
|
||||
: Promise(*global_object.promise_prototype())
|
||||
, m_generator_object(generator_object)
|
||||
, m_on_fulfillment(NativeFunction::create(global_object, "async.on_fulfillment"sv, [this](VM& vm, GlobalObject& global_object) {
|
||||
return react_to_async_task_completion(vm, global_object, vm.argument(0), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue