From af8f3857bd4f393038f9ed974eb0795a480cb9ea Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 6 Jun 2022 12:38:22 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- Promise.js | 1 - test.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Promise.js b/Promise.js index ad8279f..648fd81 100644 --- a/Promise.js +++ b/Promise.js @@ -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 diff --git a/test.js b/test.js index 4f5b0e5..0acb9e7 100755 --- a/test.js +++ b/test.js @@ -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')