bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-02-07 14:17:59 +03:00
parent a02a5bf09b
commit 0b8a9d98ab
2 changed files with 3 additions and 3 deletions

View File

@ -1330,8 +1330,8 @@ object.Mixin('PromiseMixin', 'soft', {
// XXX should we just check for .then(..) ???
// XXX update README if this changes...
: (data.length == 1
&& Symbol.asyncIterator in data[0]
&& 'then' in data[0]) ?
&& data[0][Symbol.asyncIterator]
&& data[0].then) ?
data[0].then(func, ...error)
: error.length > 0 ?
function(){

View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "6.24.23",
"version": "6.24.24",
"description": "Generic JavaScript types and type extensions...",
"main": "main.js",
"scripts": {