fix lack of sharing of fulfilled count

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
gterzian 2025-06-06 18:21:09 +07:00
parent 2909ef4a5f
commit 99bbef833a
No known key found for this signature in database
GPG key ID: E290318CF2FC84D3

View file

@ -507,7 +507,7 @@ pub(crate) fn wait_for_all(
can_gc: CanGc, can_gc: CanGc,
) { ) {
// Let fullfilledCount be 0. // Let fullfilledCount be 0.
// Note: done below when constructing a fulfillment handler. let fulfilled_count: Rc<RefCell<usize>> = Default::default();
// Let rejected be false. // Let rejected be false.
// Note: done below when constructing a rejection handler. // Note: done below when constructing a rejection handler.
@ -563,7 +563,7 @@ pub(crate) fn wait_for_all(
success_steps: success_steps.clone(), success_steps: success_steps.clone(),
result, result,
promise_index, promise_index,
fulfilled_count: Default::default(), fulfilled_count: fulfilled_count.clone(),
})), })),
Some(Box::new(rejection_handler.clone())), Some(Box::new(rejection_handler.clone())),
can_gc, can_gc,