From 579fd05323d4cac14202a79c87510fa9fb4e756b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 8 Dec 2022 01:38:06 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- Promise.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Promise.js b/Promise.js index aabab8b..5d9a5cb 100644 --- a/Promise.js +++ b/Promise.js @@ -1071,6 +1071,8 @@ object.Mixin('PromiseMixin', 'soft', { ...error) : data[0].then(func, ...error)) // XXX not sure if we need to expand async generators... + // ...since it has .then(..) it can be treated as a promise... + // XXX should we just check for .then(..) ??? : (data.length == 1 && Symbol.asyncIterator in data[0] && 'then' in data[0]) ?