From 009fe18fa269247ae533608fa524c442b69b8f3a Mon Sep 17 00:00:00 2001 From: dave caruso Date: Tue, 8 Aug 2023 22:19:46 -0700 Subject: worker tests (#4058) Co-authored-by: Jarred Sumner --- src/bun.js/bindings/Process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 8dcfd8daa..9a09eca66 100644 --- a/src/bun.js/bindings/Process.cpp +++ b/src/bun.js/bindings/Process.cpp @@ -397,7 +397,7 @@ JSC_DEFINE_HOST_FUNCTION(Process_functionExit, Process__dispatchOnExit(zigGlobal, exitCode); Bun__Process__exit(zigGlobal, exitCode); - __builtin_unreachable(); + return JSC::JSValue::encode(jsUndefined()); } extern "C" uint64_t Bun__readOriginTimer(void*); @@ -1156,7 +1156,7 @@ JSC_DEFINE_HOST_FUNCTION(Process_functionReallyExit, (JSGlobalObject * globalObj zigGlobal = Bun__getDefaultGlobal(); } Bun__Process__exit(zigGlobal, exitCode); - __builtin_unreachable(); + return JSC::JSValue::encode(jsUndefined()); } template -- cgit v1.2.3