Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-06-06 12:38:22 +03:00
parent a7ea5014be
commit af8f3857bd
2 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,6 @@ object.Constructor('IterablePromise', Promise, {
// await Promise.iter([1,Promise.resolve(2),[3]])
// .map(e => Promise.resolve(e))
// ...again the problem is in the normalized input...
// XXX BUG: .map(..) returning a promise broken again...
__new__: function(_, list, handler){
// instance...
var promise

View File

@ -192,6 +192,7 @@ var cases = test.Cases({
assert(res instanceof Array, 'result is array')
input instanceof Array ?
// XXX this does not catch some errors -- map_promise specifically...
assert.array(res,
await Promise.all(input),
'array -> array')