diff options
Diffstat (limited to 'src/js/tojs.nim')
-rw-r--r-- | src/js/tojs.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/tojs.nim b/src/js/tojs.nim index f625ab98..4090757d 100644 --- a/src/js/tojs.nim +++ b/src/js/tojs.nim @@ -324,8 +324,7 @@ proc toJS(ctx: JSContext; promise: EmptyPromise): JSValue = if JS_IsException(jsPromise): return JS_EXCEPTION promise.then(proc() = - let res = JS_Call(ctx, resolving_funcs[0], JS_UNDEFINED, 1, - JS_UNDEFINED.toJSValueArray()) + let res = JS_Call(ctx, resolving_funcs[0], JS_UNDEFINED, 0, nil) JS_FreeValue(ctx, res) JS_FreeValue(ctx, resolving_funcs[0]) JS_FreeValue(ctx, resolving_funcs[1])) |