espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.75k stars 739 forks source link

Promise.all([]) should complete immediately! #2371

Closed gfwilliams closed 1 year ago

gfwilliams commented 1 year ago

It looks like we don't check if there was nothing in the arguments.

Promise.all([Promise.resolve()]).then(() => { console.log('ok'); });
// works
Promise.all([]).then(() => { console.log('ok'); });
// never resolves