Skip to content

Commit

Permalink
fix(ext/os): pass SignalState to web worker (#27741)
Browse files Browse the repository at this point in the history
Closes #27717

Made a mistake in #27655 and
didn't add the `SignalStore` for web worker.

(cherry picked from commit 3956280)
  • Loading branch information
bartlomieju authored and crowlKats committed Jan 21, 2025
1 parent a4003a5 commit 1ce0cca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/os/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
);

Expand Down

0 comments on commit 1ce0cca

Please sign in to comment.