From 395628026f080beae34b720ca8b9a7da2e29d06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 20 Jan 2025 14:13:15 +0000 Subject: [PATCH] fix(ext/os): pass SignalState to web worker (#27741) Closes https://github.com/denoland/deno/issues/27717 Made a mistake in https://github.com/denoland/deno/pull/27655 and didn't add the `SignalStore` for web worker. --- ext/os/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/os/lib.rs b/ext/os/lib.rs index f084601678..a2d5a7193b 100644 --- a/ext/os/lib.rs +++ b/ext/os/lib.rs @@ -116,6 +116,12 @@ deno_core::extension!( "op_exit" | "op_set_exit_code" | "op_get_exit_code" => op.with_implementation_from(&deno_core::op_void_sync()), _ => op, + }, + state = |state| { + #[cfg(unix)] + { + state.put(ops::signal::SignalState::default()); + } } );