diff --git a/src/bun.js/bindings/BunProcess.cpp b/src/bun.js/bindings/BunProcess.cpp index 46a8a6386900e9..5be9e86cdcddf2 100644 --- a/src/bun.js/bindings/BunProcess.cpp +++ b/src/bun.js/bindings/BunProcess.cpp @@ -856,7 +856,7 @@ void signalHandler(uv_signal_t* signal, int signalNumber) return; // signal handlers can be run on any thread context->postTaskConcurrently([signalNumber](ScriptExecutionContext& context) { - Bun__onSignalForJS(signalNumber, context.jsGlobalObject()); + Bun__onSignalForJS(signalNumber, jsCast(context.jsGlobalObject())); }); #else