From 62976a1c948e35e14a518e0134d20b497f8f9910 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 27 Apr 2020 13:38:23 -0400 Subject: [PATCH] signal APIs should require --unstable (#4926) --- cli/ops/signal.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cli/ops/signal.rs b/cli/ops/signal.rs index 8cada6b995..ef652bc671 100644 --- a/cli/ops/signal.rs +++ b/cli/ops/signal.rs @@ -40,10 +40,11 @@ struct SignalArgs { #[cfg(unix)] fn op_signal_bind( isolate: &mut CoreIsolate, - _state: &State, + state: &State, args: Value, _zero_copy: Option, ) -> Result { + state.check_unstable("Deno.signal"); let args: BindSignalArgs = serde_json::from_value(args)?; let mut resource_table = isolate.resource_table.borrow_mut(); let rid = resource_table.add( @@ -61,10 +62,11 @@ fn op_signal_bind( #[cfg(unix)] fn op_signal_poll( isolate: &mut CoreIsolate, - _state: &State, + state: &State, args: Value, _zero_copy: Option, ) -> Result { + state.check_unstable("Deno.signal"); let args: SignalArgs = serde_json::from_value(args)?; let rid = args.rid as u32; let resource_table = isolate.resource_table.clone(); @@ -87,10 +89,11 @@ fn op_signal_poll( #[cfg(unix)] pub fn op_signal_unbind( isolate: &mut CoreIsolate, - _state: &State, + state: &State, args: Value, _zero_copy: Option, ) -> Result { + state.check_unstable("Deno.signal"); let args: SignalArgs = serde_json::from_value(args)?; let rid = args.rid as u32; let mut resource_table = isolate.resource_table.borrow_mut();