bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-07-05 14:31:00 +03:00
parent aadeb4f051
commit 9b23bebe0e
2 changed files with 5 additions and 1 deletions

View File

@ -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)){

View File

@ -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": {