Skip to content

lib: reduce overhead of `SafePromiseAllSettledReturnVoid` calls

It was simply calling SafePromiseAllSettled, which itself calls arrayToSafePromiseIterable which wraps all promises into new SafePromise object and wraps it into a SafeArrayIterator. Since we don't care about the return value, we can take some shortcuts.

https://github.com/nodejs/node/blob/fd21429ef5f6c2c06ce9e108a8548a1703577714/lib/internal/per_context/primordials.js#L483-L490

Merge request reports

Loading