Fix promise rejection catching

master^2
Elias Fleckenstein 2021-11-29 23:38:43 +01:00
parent 2a680b1095
commit 21b795f826
No known key found for this signature in database
GPG Key ID: 06927A5199D6C9B2
1 changed files with 1 additions and 0 deletions

View 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