#1711·bluebird

Promise.all spec compliance issue

Author: iamartCreated May 30, 2024Updated May 30, 2024

Spec expects a single iterable object passed to Promise.all. Bluebird's implementation defies and allows passing a promise with an iterable value.

Example:

await Promise.all(Promise.resolve([1,2]));

This returns an array instead of throwing an error.