mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-11 10:54:20 +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:
|
||||
printf(" %u: ", idx);
|
||||
if (idx < cpool_count) {
|
||||
JS_DumpValue(ctx, cpool[idx]);
|
||||
JS_PrintValue(ctx, stdout, cpool[idx], NULL);
|
||||
}
|
||||
break;
|
||||
case OP_FMT_atom:
|
||||
@ -48845,8 +48845,8 @@ static JSValue js_promise_resolve_function_call(JSContext *ctx,
|
||||
else
|
||||
resolution = JS_UNDEFINED;
|
||||
#ifdef DUMP_PROMISE
|
||||
printf("js_promise_resolving_function_call: is_reject=%d resolution=", is_reject);
|
||||
JS_DumpValue(ctx, resolution);
|
||||
printf("js_promise_resolving_function_call: is_reject=%d ", is_reject);
|
||||
JS_DumpValue(ctx, "resolution", resolution);
|
||||
printf("\n");
|
||||
#endif
|
||||
if (is_reject || !JS_IsObject(resolution)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user