From 9b23bebe0e1ee7e332d0a08ee8534dae7d5ee35d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 5 Jul 2026 14:31:00 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- Promise.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Promise.js b/Promise.js index b8e4423..0d9ebd7 100644 --- a/Promise.js +++ b/Promise.js @@ -1367,6 +1367,9 @@ object.Mixin('PromiseMixin', 'soft', { // -> // -> // + // 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)){ diff --git a/package.json b/package.json index bf38b95..2793733 100644 --- a/package.json +++ b/package.json @@ -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": {