Skip to content

Commit 703de06

Browse files
author
Fabrice Bellard
committed
fixed use of JS_DumpValue()
1 parent be06b3e commit 703de06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quickjs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30500,7 +30500,7 @@ static void dump_byte_code(JSContext *ctx, int pass,
3050030500
has_pool_idx:
3050130501
printf(" %u: ", idx);
3050230502
if (idx < cpool_count) {
30503-
JS_DumpValue(ctx, cpool[idx]);
30503+
JS_PrintValue(ctx, stdout, cpool[idx], NULL);
3050430504
}
3050530505
break;
3050630506
case OP_FMT_atom:
@@ -48845,8 +48845,8 @@ static JSValue js_promise_resolve_function_call(JSContext *ctx,
4884548845
else
4884648846
resolution = JS_UNDEFINED;
4884748847
#ifdef DUMP_PROMISE
48848-
printf("js_promise_resolving_function_call: is_reject=%d resolution=", is_reject);
48849-
JS_DumpValue(ctx, resolution);
48848+
printf("js_promise_resolving_function_call: is_reject=%d ", is_reject);
48849+
JS_DumpValue(ctx, "resolution", resolution);
4885048850
printf("\n");
4885148851
#endif
4885248852
if (is_reject || !JS_IsObject(resolution)) {

0 commit comments

Comments
 (0)