Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-12-08 01:38:06 +03:00
parent ac26ca9dcf
commit 579fd05323

View File

@ -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]) ?