mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-12 03:05:55 +08:00
fixed use of JS_DumpValue()
This commit is contained in:
parent
be06b3e92b
commit
703de06c43
@ -30500,7 +30500,7 @@ static void dump_byte_code(JSContext *ctx, int pass,
|
|||||||
has_pool_idx:
|
has_pool_idx:
|
||||||
printf(" %u: ", idx);
|
printf(" %u: ", idx);
|
||||||
if (idx < cpool_count) {
|
if (idx < cpool_count) {
|
||||||
JS_DumpValue(ctx, cpool[idx]);
|
JS_PrintValue(ctx, stdout, cpool[idx], NULL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OP_FMT_atom:
|
case OP_FMT_atom:
|
||||||
@ -48845,8 +48845,8 @@ static JSValue js_promise_resolve_function_call(JSContext *ctx,
|
|||||||
else
|
else
|
||||||
resolution = JS_UNDEFINED;
|
resolution = JS_UNDEFINED;
|
||||||
#ifdef DUMP_PROMISE
|
#ifdef DUMP_PROMISE
|
||||||
printf("js_promise_resolving_function_call: is_reject=%d resolution=", is_reject);
|
printf("js_promise_resolving_function_call: is_reject=%d ", is_reject);
|
||||||
JS_DumpValue(ctx, resolution);
|
JS_DumpValue(ctx, "resolution", resolution);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
#endif
|
#endif
|
||||||
if (is_reject || !JS_IsObject(resolution)) {
|
if (is_reject || !JS_IsObject(resolution)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user