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();