diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-09-13 16:01:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 22:01:31 +0000 |
commit | 81d50e1b6685a12a4f43693e695073a97f79264b (patch) | |
tree | 9a9be134f1f37b11c8521bd1ff7a07d330b6f1a5 /runtime/ops/signal.rs | |
parent | 12a75e3b4328dd36a63799262b2e252f9fb9d58e (diff) |
chore: bump deno_core and cargo update (#20480)
Bump deno_core, pulling in new rusty_v8. Requires some op2/deprecation
fixes.
Diffstat (limited to 'runtime/ops/signal.rs')
-rw-r--r-- | runtime/ops/signal.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/runtime/ops/signal.rs b/runtime/ops/signal.rs index 8508aa56a..c0279a87c 100644 --- a/runtime/ops/signal.rs +++ b/runtime/ops/signal.rs @@ -1,7 +1,6 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use deno_core::error::type_error; use deno_core::error::AnyError; -use deno_core::op; use deno_core::op2; use deno_core::AsyncRefCell; use deno_core::CancelFuture; @@ -537,10 +536,11 @@ pub fn signal_int_to_str(s: libc::c_int) -> Result<&'static str, AnyError> { } #[cfg(unix)] -#[op] +#[op2(fast)] +#[smi] fn op_signal_bind( state: &mut OpState, - sig: &str, + #[string] sig: &str, ) -> Result<ResourceId, AnyError> { let signo = signal_str_to_int(sig)?; if signal_hook_registry::FORBIDDEN.contains(&signo) { @@ -557,10 +557,11 @@ fn op_signal_bind( } #[cfg(windows)] -#[op] +#[op2(fast)] +#[smi] fn op_signal_bind( state: &mut OpState, - sig: &str, + #[string] sig: &str, ) -> Result<ResourceId, AnyError> { let signo = signal_str_to_int(sig)?; let resource = SignalStreamResource { @@ -605,6 +606,6 @@ pub fn op_signal_unbind( state: &mut OpState, #[smi] rid: ResourceId, ) -> Result<(), AnyError> { - state.resource_table.close(rid)?; + state.resource_table.take_any(rid)?.close(); Ok(()) } |