forked from mirrors/gecko-dev
Bug 1822675 - Part 2: Do not reject with uncatchable exception r=smaug
https://wpt.live/encoding/streams/stringification-crash.html crashes again without this. Depends on D172794 Differential Revision: https://phabricator.services.mozilla.com/D173026
This commit is contained in:
parent
0b8d79c640
commit
1f08520e4c
1 changed files with 3 additions and 0 deletions
|
|
@ -271,6 +271,9 @@ static void SettlePromise(Promise* aSettlingPromise, Promise* aCallbackPromise,
|
|||
if (!aSettlingPromise) {
|
||||
return;
|
||||
}
|
||||
if (aRv.IsUncatchableException()) {
|
||||
return;
|
||||
}
|
||||
if (aRv.Failed()) {
|
||||
aSettlingPromise->MaybeReject(std::move(aRv));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue