From 4986fa262cbd5f60c76a79aa4f01384328eefde1 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 2 Oct 2022 10:28:18 +0100 Subject: LibJS: Update outdated PROMISE_DEBUG logging --- Userland/Libraries/LibJS/Runtime/Promise.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Userland/Libraries/LibJS/Runtime') diff --git a/Userland/Libraries/LibJS/Runtime/Promise.cpp b/Userland/Libraries/LibJS/Runtime/Promise.cpp index d114b094d7..4b6d5d74e5 100644 --- a/Userland/Libraries/LibJS/Runtime/Promise.cpp +++ b/Userland/Libraries/LibJS/Runtime/Promise.cpp @@ -146,7 +146,7 @@ Promise::ResolvingFunctions Promise::create_resolving_functions() auto then_job_callback = vm.host_make_job_callback(then_action.as_function()); // 14. Let job be NewPromiseResolveThenableJob(promise, resolution, thenJobCallback). - dbgln_if(PROMISE_DEBUG, "[Promise @ {} / PromiseResolvingFunction]: Creating PromiseResolveThenableJob for thenable {}", &promise, resolution); + dbgln_if(PROMISE_DEBUG, "[Promise @ {} / PromiseResolvingFunction]: Creating PromiseJob for thenable {}", &promise, resolution); auto job = create_promise_resolve_thenable_job(vm, promise, resolution, move(then_job_callback)); // 15. Perform HostEnqueuePromiseJob(job.[[Job]], job.[[Realm]]). @@ -270,7 +270,7 @@ void Promise::trigger_reactions() const // 1. For each element reaction of reactions, do for (auto& reaction : reactions) { // a. Let job be NewPromiseReactionJob(reaction, argument). - dbgln_if(PROMISE_DEBUG, "[Promise @ {} / trigger_reactions()]: Creating PromiseReactionJob for PromiseReaction @ {} with argument {}", this, &reaction, m_result); + dbgln_if(PROMISE_DEBUG, "[Promise @ {} / trigger_reactions()]: Creating PromiseJob for PromiseReaction @ {} with argument {}", this, &reaction, m_result); auto [job, realm] = create_promise_reaction_job(vm, *reaction, m_result); // b. Perform HostEnqueuePromiseJob(job.[[Job]], job.[[Realm]]). @@ -340,7 +340,7 @@ Value Promise::perform_then(Value on_fulfilled, Value on_rejected, Optional