Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-12-21 23:00:42 +03:00
parent fa1e0a5ddb
commit 61d9e121cb

View File

@ -336,12 +336,7 @@ object.Constructor('IterablePromise', Promise, {
return list
[map](function(elem){
// XXX migrate code from old .__pack(..)...
//elem = elem instanceof Array ?
// handler(elem)
// : elem instanceof Promise ?
// elem.then(handler)
// //that.__handle(elem, handler, onerror)
// : [handler(elem)]
// XXX
elem = elem instanceof Array
|| elem instanceof Promise ?
that.__handle(elem, handler, onerror)