clarification....

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-01-03 09:47:33 +03:00
parent bc9467b583
commit 8cabd4cdb3

View File

@ -319,9 +319,9 @@ object.Constructor('IterablePromise', Promise, {
// ...the fist result seems odd...
// XXX FIXED but need to add a test for IterablePromise branch below...
// XXX BUG:
// await Promise.iter([1, Promise.all([2,3]), 4], 'raw')
// await Promise.iter([1, Promise.all([2,3]), [4,5]], 'raw')
// .map(e => e*2)
// -> [1, NaN, 4]
// -> [1, NaN, NaN]
// while:
// await Promise.iter([1, Promise.all([2,3]), 4], 'raw')
// -> [1, 2, 3, 4]