fix fd bug

This commit is contained in:
2026-02-25 20:25:36 -06:00
parent e38c2f07bf
commit fa9d2609b1
2 changed files with 6 additions and 3 deletions

View File

@@ -133,7 +133,8 @@ static void js_log_callback(JSContext *ctx, const char *channel, const char *msg
JS_FRAME(ctx);
JS_ROOT(stack, JS_GetStack(ctx));
JS_ROOT(args_array, JS_NewArray(ctx));
JS_SetPropertyNumber(ctx, args_array.val, 0, JS_NewString(ctx, msg));
JSValue msg_str = JS_NewString(ctx, msg);
JS_SetPropertyNumber(ctx, args_array.val, 0, msg_str);
JS_SetPropertyNumber(ctx, args_array.val, 1, stack.val);
JSValue argv[2];
argv[0] = JS_NewString(ctx, channel);