diff options
Diffstat (limited to 'ext/net/01_net.js')
-rw-r--r-- | ext/net/01_net.js | 8 |
1 files changed, 4 insertions, 4 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); } } |