From: Elias Fleckenstein Date: Mon, 29 Nov 2021 22:38:43 +0000 (+0100) Subject: Fix promise rejection catching X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=21b795f826f5d2d36d45677f1e6c4118ef850846;p=lua_async.git Fix promise rejection catching --- 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