diff options
author | Valentin Anger <syrupthinker@gryphno.de> | 2020-05-24 15:43:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 09:43:40 -0400 |
commit | b7f0b073bb7585ea932a5783ff4ea88843a46b1b (patch) | |
tree | e81848f02fadb45f262a609d66380bcdd5ce5256 /cli/ops/net.rs | |
parent | f6e31603563bad38c663494ddec6a363989b5786 (diff) |
Add unstable checks for unix transport (#5818)
Also remove the unix example from the stable documentation
to stay in line with the `Deno.listen` one
Diffstat (limited to 'cli/ops/net.rs')
-rw-r--r-- | cli/ops/net.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/ops/net.rs b/cli/ops/net.rs index 59707e291..ae5bcb9bb 100644 --- a/cli/ops/net.rs +++ b/cli/ops/net.rs @@ -302,6 +302,7 @@ fn op_connect( transport_args: ArgsEnum::Unix(args), } if transport == "unix" => { let address_path = net_unix::Path::new(&args.path); + state.check_unstable("Deno.connect"); state.check_read(&address_path)?; let op = async move { let path = args.path; @@ -524,6 +525,9 @@ fn op_listen( transport, transport_args: ArgsEnum::Unix(args), } if transport == "unix" || transport == "unixpacket" => { + if transport == "unix" { + state.check_unstable("Deno.listen"); + } if transport == "unixpacket" { state.check_unstable("Deno.listenDatagram"); } |