aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-11-29 23:38:43 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-11-29 23:38:43 +0100
commit21b795f826f5d2d36d45677f1e6c4118ef850846 (patch)
tree719aefd181ca14dbd908edb6baa2ab378dcf0ae5
parent2a680b1095bb7cb80869d7fb60cc601cce560d54 (diff)
downloadlua_async-21b795f826f5d2d36d45677f1e6c4118ef850846.tar.xz
Fix promise rejection catching
-rw-r--r--promises.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/promises.lua b/promises.lua
index 29bcdab..e654458 100644
--- a/promises.lua
+++ b/promises.lua
@@ -39,6 +39,7 @@ function PromisePrototype:__reject_raw(reason)
local any_child = false
for _, child in ipairs(self.__children) do
+ any_child = true
child:reject(reason)
end