mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
dont miss this
This commit is contained in:
@@ -282,7 +282,7 @@ fn setCwd_(globalObject: *jsc.JSGlobalObject, to: *jsc.ZigString) bun.JSError!js
|
||||
// TODO(@190n) this may need to be noreturn
|
||||
pub fn exit(globalObject: *jsc.JSGlobalObject, code: u8) callconv(.c) void {
|
||||
var vm = globalObject.bunVM();
|
||||
vm.exit_handler.exit_code = code;
|
||||
vm.exit_handler.exit_code = code; // TODO(@alii) Is setting this multiple times incorrect? There's a regression node test for this (https://linear.app/oven/issue/BUN-13917/nodejs-test-test-worker-process-exit-async-modulejs)
|
||||
if (vm.worker) |worker| {
|
||||
// TODO(@190n) we may need to use requestTerminate or throwTerminationException
|
||||
// instead to terminate the worker sooner
|
||||
|
||||
Reference in New Issue
Block a user