diff options
Diffstat (limited to 'ext/net')
-rw-r--r-- | ext/net/01_net.js | 8 | ||||
-rw-r--r-- | ext/net/02_tls.js | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/ext/net/01_net.js b/ext/net/01_net.js index fde75fe56..2c7ec0f47 100644 --- a/ext/net/01_net.js +++ b/ext/net/01_net.js @@ -3,7 +3,7 @@ ((window) => { const core = window.Deno.core; - const { BadResourcePrototype, InterruptedPrototype } = core; + const { BadResourcePrototype, InterruptedPrototype, ops } = core; const { WritableStream, readableStreamForRid } = window.__bootstrap.streams; const { Error, @@ -42,7 +42,7 @@ } function opListen(args) { - return core.opSync("op_net_listen", args); + return ops.op_net_listen(args); } function opConnect(args) { @@ -157,11 +157,11 @@ class TcpConn extends Conn { setNoDelay(nodelay = true) { - return core.opSync("op_set_nodelay", this.rid, nodelay); + return ops.op_set_nodelay(this.rid, nodelay); } setKeepAlive(keepalive = true) { - return core.opSync("op_set_keepalive", this.rid, keepalive); + return ops.op_set_keepalive(this.rid, keepalive); } } diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js index 86f651521..04b25caf9 100644 --- a/ext/net/02_tls.js +++ b/ext/net/02_tls.js @@ -3,6 +3,7 @@ ((window) => { const core = window.Deno.core; + const ops = core.ops; const { Listener, Conn } = window.__bootstrap.net; function opConnectTls( @@ -16,7 +17,7 @@ } function opListenTls(args) { - return core.opSync("op_tls_listen", args); + return ops.op_tls_listen(args); } function opStartTls(args) { |