summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-22 11:48:08 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:58:30 +0100
commitb465f46e009164b5d2659f216b9307efee187222 (patch)
tree33038f3bc2c9d2d7e29c67bdfa94f38b2f761013 /Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp
parent7b990c27a14eddd152932d8540afc8c3838030fb (diff)
downloadserenity-b465f46e009164b5d2659f216b9307efee187222.zip
LibJS: Remove GlobalObject parameter from native functions
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp
index 97dc69c3eb..f398e8a133 100644
--- a/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp
+++ b/Userland/Libraries/LibJS/Runtime/AsyncFunctionDriverWrapper.cpp
@@ -21,10 +21,10 @@ ThrowCompletionOr<Value> AsyncFunctionDriverWrapper::create(Realm& realm, Genera
AsyncFunctionDriverWrapper::AsyncFunctionDriverWrapper(Realm& realm, GeneratorObject* generator_object)
: Promise(*realm.global_object().promise_prototype())
, m_generator_object(generator_object)
- , m_on_fulfillment(NativeFunction::create(realm, "async.on_fulfillment"sv, [this](VM& vm, GlobalObject&) {
+ , m_on_fulfillment(NativeFunction::create(realm, "async.on_fulfillment"sv, [this](VM& vm) {
return react_to_async_task_completion(vm, vm.argument(0), true);
}))
- , m_on_rejection(NativeFunction::create(realm, "async.on_rejection"sv, [this](VM& vm, GlobalObject&) {
+ , m_on_rejection(NativeFunction::create(realm, "async.on_rejection"sv, [this](VM& vm) {
return react_to_async_task_completion(vm, vm.argument(0), false);
}))
{