diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-10-25 15:24:52 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-10-25 15:24:52 +0100 |
commit | e6ff6e333ce7726e187d5f5ca30a0796dbe717a9 (patch) | |
tree | c362a3c6ca2861d61f457879b4b2a028257f9f89 /util | |
parent | b74a643e349651c8161512c3180c32da7c6665c0 (diff) | |
download | prosody-e6ff6e333ce7726e187d5f5ca30a0796dbe717a9.tar.gz prosody-e6ff6e333ce7726e187d5f5ca30a0796dbe717a9.zip |
util.promise: Fix missing parameters
Diffstat (limited to 'util')
-rw-r--r-- | util/promise.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |