diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-29 23:38:43 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-29 23:38:43 +0100 |
commit | 21b795f826f5d2d36d45677f1e6c4118ef850846 (patch) | |
tree | 719aefd181ca14dbd908edb6baa2ab378dcf0ae5 | |
parent | 2a680b1095bb7cb80869d7fb60cc601cce560d54 (diff) | |
download | lua_async-21b795f826f5d2d36d45677f1e6c4118ef850846.tar.xz |
Fix promise rejection catching
-rw-r--r-- | promises.lua | 1 |
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 |