mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ac26ca9dcf
commit
579fd05323
@ -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]) ?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user