mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
fix lack of sharing of fulfilled count
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
parent
2909ef4a5f
commit
99bbef833a
1 changed files with 2 additions and 2 deletions
|
@ -507,7 +507,7 @@ pub(crate) fn wait_for_all(
|
|||
can_gc: CanGc,
|
||||
) {
|
||||
// Let fullfilledCount be 0.
|
||||
// Note: done below when constructing a fulfillment handler.
|
||||
let fulfilled_count: Rc<RefCell<usize>> = Default::default();
|
||||
|
||||
// Let rejected be false.
|
||||
// Note: done below when constructing a rejection handler.
|
||||
|
@ -563,7 +563,7 @@ pub(crate) fn wait_for_all(
|
|||
success_steps: success_steps.clone(),
|
||||
result,
|
||||
promise_index,
|
||||
fulfilled_count: Default::default(),
|
||||
fulfilled_count: fulfilled_count.clone(),
|
||||
})),
|
||||
Some(Box::new(rejection_handler.clone())),
|
||||
can_gc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue