mirror of
https://github.com/flynx/types.js.git
synced 2026-10-03 05:01:31 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
aadeb4f051
commit
9b23bebe0e
@ -1367,6 +1367,9 @@ object.Mixin('PromiseMixin', 'soft', {
|
||||
// -> <value>
|
||||
// -> <promise>
|
||||
//
|
||||
// XXX BUG:
|
||||
// Promise.awaitOrRun(1,2,3, function(){ throw new Error('moo') })
|
||||
// -> TypeError: error[0] is not a functon
|
||||
// XXX should this be implemented via SyncPromise???
|
||||
// XXX not sure if we need to expand async generators...
|
||||
// (update README if this changes)
|
||||
@ -1375,6 +1378,7 @@ object.Mixin('PromiseMixin', 'soft', {
|
||||
var mode = 'deep'
|
||||
data = [...arguments]
|
||||
func = data.pop()
|
||||
error = null
|
||||
if(data.length > 1
|
||||
&& (typeof(data.at(-1)) == 'function'
|
||||
|| func == null)){
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "6.26.2",
|
||||
"version": "6.26.3",
|
||||
"description": "Generic JavaScript types and type extensions...",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user