From 1021e3c7297cbe1f5e5f3ebbc6ee7a25b4095d52 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Fri, 16 May 2025 20:48:01 +0200 Subject: compilation fix --- quickjs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickjs.c b/quickjs.c index 7907af5..b524353 100644 --- a/quickjs.c +++ b/quickjs.c @@ -49216,8 +49216,8 @@ static JSValue js_promise_withResolvers(JSContext *ctx, return obj; } -static JSValue js_promise_try(JSContext *ctx, JSValue this_val, - int argc, JSValue *argv) +static JSValue js_promise_try(JSContext *ctx, JSValueConst this_val, + int argc, JSValueConst *argv) { JSValue result_promise, resolving_funcs[2], ret, ret2; BOOL is_reject = 0; @@ -49232,7 +49232,7 @@ static JSValue js_promise_try(JSContext *ctx, JSValue this_val, is_reject = 1; ret = JS_GetException(ctx); } - ret2 = JS_Call(ctx, resolving_funcs[is_reject], JS_UNDEFINED, 1, &ret); + ret2 = JS_Call(ctx, resolving_funcs[is_reject], JS_UNDEFINED, 1, (JSValueConst *)&ret); JS_FreeValue(ctx, resolving_funcs[0]); JS_FreeValue(ctx, resolving_funcs[1]); JS_FreeValue(ctx, ret); -- cgit v1.2.3