Software /
code /
prosody
Comparison
util/promise.lua @ 12750:c882d2460bb1
util.promise: Remove line that was supposed to be removed in eb9814372c54
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 07 Oct 2022 17:45:23 +0100 |
parent | 12749:eb9814372c54 |
child | 12975:d10957394a3c |
comparison
equal
deleted
inserted
replaced
12749:eb9814372c54 | 12750:c882d2460bb1 |
---|---|
56 return true; | 56 return true; |
57 end | 57 end |
58 | 58 |
59 local function new_resolve_functions(p) | 59 local function new_resolve_functions(p) |
60 local function _resolve(v) | 60 local function _resolve(v) |
61 resolved = true; | |
62 if is_promise(v) then | 61 if is_promise(v) then |
63 v:next(new_resolve_functions(p)); | 62 v:next(new_resolve_functions(p)); |
64 elseif promise_settle(p, "fulfilled", next_fulfilled, p._pending_on_fulfilled, v) then | 63 elseif promise_settle(p, "fulfilled", next_fulfilled, p._pending_on_fulfilled, v) then |
65 p.value = v; | 64 p.value = v; |
66 end | 65 end |