mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-29 01:49:18 +08:00
compilation fix
This commit is contained in:
parent
a33610de16
commit
1021e3c729
@ -49216,8 +49216,8 @@ static JSValue js_promise_withResolvers(JSContext *ctx,
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
static JSValue js_promise_try(JSContext *ctx, JSValue this_val,
|
static JSValue js_promise_try(JSContext *ctx, JSValueConst this_val,
|
||||||
int argc, JSValue *argv)
|
int argc, JSValueConst *argv)
|
||||||
{
|
{
|
||||||
JSValue result_promise, resolving_funcs[2], ret, ret2;
|
JSValue result_promise, resolving_funcs[2], ret, ret2;
|
||||||
BOOL is_reject = 0;
|
BOOL is_reject = 0;
|
||||||
@ -49232,7 +49232,7 @@ static JSValue js_promise_try(JSContext *ctx, JSValue this_val,
|
|||||||
is_reject = 1;
|
is_reject = 1;
|
||||||
ret = JS_GetException(ctx);
|
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[0]);
|
||||||
JS_FreeValue(ctx, resolving_funcs[1]);
|
JS_FreeValue(ctx, resolving_funcs[1]);
|
||||||
JS_FreeValue(ctx, ret);
|
JS_FreeValue(ctx, ret);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user