diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-30 14:09:31 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-30 14:09:31 +0200 |
commit | 703de06c43e0896b2496eb2b7e1faa7178e4046a (patch) | |
tree | 926110e7bc7cda5992f902ef189b19d8fefba162 | |
parent | be06b3e92b77a343adefa49a4b29e1ad523014ea (diff) | |
download | quickjs-703de06c43e0896b2496eb2b7e1faa7178e4046a.tar.gz quickjs-703de06c43e0896b2496eb2b7e1faa7178e4046a.zip |
fixed use of JS_DumpValue()
-rw-r--r-- | quickjs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) { |