From 4c300cc5e864098f37239acec3c603a8c9079307 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 16 Aug 2022 00:20:49 +0100 Subject: LibJS: Fix the prototype of AsyncFunctionDriverWrapper's Promise base --- Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp index f09553ab58..f76bf9ce86 100644 --- a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp +++ b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp @@ -19,7 +19,7 @@ ThrowCompletionOr 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); -- cgit v1.2.3