]> git.lizzy.rs Git - lua_async.git/blobdiff - promises.lua
Fix promise rejection catching
[lua_async.git] / promises.lua
index 29bcdabcf374d8c38637d55144194fc68d9c4c7e..e65445831d80dd57c59d5d597c0b959e52dfaf07 100644 (file)
@@ -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