From dd74a38b22fe0424ea2fd29ac2ec5cbb3bef46dc Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 25 Oct 2018 15:24:52 +0100 Subject: util.promise: Fix missing parameters --- util/promise.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/promise.lua b/util/promise.lua index fa09a01c..14521c4a 100644 --- a/util/promise.lua +++ b/util/promise.lua @@ -31,11 +31,11 @@ local function next_pending(self, on_fulfilled, on_rejected, resolve, reject) end local function next_fulfilled(promise, on_fulfilled, on_rejected, resolve, reject) -- luacheck: ignore 212/on_rejected - wrap_handler(on_fulfilled, resolve, reject)(promise.value); + wrap_handler(on_fulfilled, resolve, reject, resolve)(promise.value); end local function next_rejected(promise, on_fulfilled, on_rejected, resolve, reject) -- luacheck: ignore 212/on_fulfilled - wrap_handler(on_rejected, resolve, reject)(promise.reason); + wrap_handler(on_rejected, resolve, reject, reject)(promise.reason); end local function promise_settle(promise, new_state, new_next, cbs, value) -- cgit v1.2.3