summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2025-04-30 14:09:31 +0200
committerFabrice Bellard <fabrice@bellard.org>2025-04-30 14:09:31 +0200
commit703de06c43e0896b2496eb2b7e1faa7178e4046a (patch)
tree926110e7bc7cda5992f902ef189b19d8fefba162
parentbe06b3e92b77a343adefa49a4b29e1ad523014ea (diff)
downloadquickjs-703de06c43e0896b2496eb2b7e1faa7178e4046a.tar.gz
quickjs-703de06c43e0896b2496eb2b7e1faa7178e4046a.zip
fixed use of JS_DumpValue()
-rw-r--r--quickjs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quickjs.c b/quickjs.c
index 428288b..2ea0bd9 100644
--- a/quickjs.c
+++ b/quickjs.c
@@ -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)) {