From f7618aba20aa112cd56c4196fb40f3648975f8da Mon Sep 17 00:00:00 2001 From: Ai Hoshino Date: Mon, 2 Oct 2023 03:55:38 +0800 Subject: fix(node:process): fix return value of `process.kill` (#6207) --- src/bun.js/bindings/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bun.js/bindings/Process.cpp') diff --git a/src/bun.js/bindings/Process.cpp b/src/bun.js/bindings/Process.cpp index d82d403d3..1caff9be9 100644 --- a/src/bun.js/bindings/Process.cpp +++ b/src/bun.js/bindings/Process.cpp @@ -1835,7 +1835,7 @@ JSC_DEFINE_HOST_FUNCTION(Process_functionKill, return JSValue::encode(jsUndefined()); } - return JSValue::encode(jsUndefined()); + return JSValue::encode(jsBoolean(true)); } extern "C" void Process__emitMessageEvent(Zig::GlobalObject* global, EncodedJSValue value) -- cgit v1.2.3