diff options
author | Jonathon Orsi <jonathon.orsi@gmail.com> | 2019-09-23 14:40:38 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-23 15:12:42 -0400 |
commit | 045e74bb39d7743b774cfd2b889bc6ce1e1ad245 (patch) | |
tree | 93a8429860a40eabaee813e6f983f64aebd8afc7 /cli/ops/mod.rs | |
parent | 4ff04ad96f27b7073e3478630ed249eedc76af2b (diff) |
feat: Add Deno.dialTLS()
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/ops/mod.rs')
-rw-r--r-- | cli/ops/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs index 7a2e9c9f4..ea71fee9f 100644 --- a/cli/ops/mod.rs +++ b/cli/ops/mod.rs @@ -20,6 +20,7 @@ mod random; mod repl; mod resources; mod timers; +mod tls; mod workers; // Warning! These values are duplicated in the TypeScript code (js/dispatch.ts), @@ -81,6 +82,7 @@ pub const OP_TRUNCATE: OpId = 54; pub const OP_MAKE_TEMP_DIR: OpId = 55; pub const OP_CWD: OpId = 56; pub const OP_FETCH_ASSET: OpId = 57; +pub const OP_DIAL_TLS: OpId = 58; pub fn dispatch( state: &ThreadSafeState, @@ -300,6 +302,9 @@ pub fn dispatch( control, zero_copy, ), + OP_DIAL_TLS => { + dispatch_json::dispatch(tls::op_dial_tls, state, control, zero_copy) + } _ => panic!("bad op_id"), }; |