mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
Bug 1453339 - Make it harder to mess up Promise::All. r=peterv, a=RyanVM
MozReview-Commit-ID: UO4wssYHj7
This commit is contained in:
parent
f350fa8432
commit
72c04aea04
5 changed files with 29 additions and 35 deletions
|
|
@ -948,10 +948,8 @@ ExtendableEvent::GetPromise()
|
|||
}
|
||||
JSContext* cx = jsapi.cx();
|
||||
|
||||
GlobalObject global(cx, globalObj->GetGlobalJSObject());
|
||||
|
||||
ErrorResult result;
|
||||
RefPtr<Promise> p = Promise::All(global, Move(mPromises), result);
|
||||
RefPtr<Promise> p = Promise::All(cx, Move(mPromises), result);
|
||||
if (NS_WARN_IF(result.MaybeSetPendingException(cx))) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue