diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-05-16 20:48:01 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-05-16 20:48:01 +0200 |
commit | 1021e3c7297cbe1f5e5f3ebbc6ee7a25b4095d52 (patch) | |
tree | a5d7a0834611010cc82fe270abf36a25ae407e92 | |
parent | a33610de16fed8c43b0f768ae0671d9027595b99 (diff) | |
download | quickjs-master.tar.gz quickjs-master.zip |
-rw-r--r-- | quickjs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |