mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1524d305f5
commit
14a84ee3bb
@ -178,14 +178,17 @@ object.Constructor('IterablePromise', Promise, {
|
||||
//elem.then(handler)
|
||||
elem
|
||||
.then(handler)
|
||||
//* XXX EXPEREMENTAL: STOP...
|
||||
.catch(function(err){
|
||||
stop = err
|
||||
if(err === Array.STOP
|
||||
|| err instanceof Array.STOP){
|
||||
if(Array.STOP
|
||||
&& (err === Array.STOP
|
||||
|| err instanceof Array.STOP)){
|
||||
return 'value' in err ?
|
||||
err.value
|
||||
: [] }
|
||||
throw err })
|
||||
//*/
|
||||
: elem instanceof Array ?
|
||||
handler(elem)
|
||||
// NOTE: we keep things that do not need protecting
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user