From 30dc9bb748f7885a8fd7fe1210e18bf45ee063b8 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 28 Apr 2020 07:36:47 +0200 Subject: Make shutdown unstable and async (#4940) --- cli/ops/net.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/ops') diff --git a/cli/ops/net.rs b/cli/ops/net.rs index 415d2cecc..b46eedc68 100644 --- a/cli/ops/net.rs +++ b/cli/ops/net.rs @@ -342,10 +342,12 @@ struct ShutdownArgs { fn op_shutdown( isolate: &mut CoreIsolate, - _state: &State, + state: &State, args: Value, _zero_copy: Option, ) -> Result { + state.check_unstable("Deno.shutdown"); + let args: ShutdownArgs = serde_json::from_value(args)?; let rid = args.rid as u32; -- cgit v1.2.3