diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-01-17 01:17:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 17:17:18 +0100 |
commit | 6da958d7ec31f2ffd21bb2beb8cc193a62afc55c (patch) | |
tree | 348fb3669348653b3907068b9ddc00f2652bdbfa /ext/net/02_tls.js | |
parent | 40134ffc99848c89e0ab88c03ca85b9122e2384b (diff) |
chore: update dlint to v0.37.0 for GitHub Actions (#17295)
Updated third_party dlint to v0.37.0 for GitHub Actions. This PR
includes following changes:
* fix(prefer-primordials): Stop using array pattern assignments
* fix(prefer-primordials): Stop using global intrinsics except for
`SharedArrayBuffer`
* feat(guard-for-in): Apply new guard-for-in rule
Diffstat (limited to 'ext/net/02_tls.js')
-rw-r--r-- | ext/net/02_tls.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js index 5b585932e..632e1fbd4 100644 --- a/ext/net/02_tls.js +++ b/ext/net/02_tls.js @@ -34,7 +34,7 @@ if (transport !== "tcp") { throw new TypeError(`Unsupported transport: '${transport}'`); } - const [rid, localAddr, remoteAddr] = await core.opAsync( + const { 0: rid, 1: localAddr, 2: remoteAddr } = await core.opAsync( "op_net_connect_tls", { hostname, port }, { certFile, caCerts, certChain, privateKey, alpnProtocols }, @@ -46,7 +46,7 @@ class TlsListener extends Listener { async accept() { - const [rid, localAddr, remoteAddr] = await core.opAsync( + const { 0: rid, 1: localAddr, 2: remoteAddr } = await core.opAsync( "op_net_accept_tls", this.rid, ); @@ -70,7 +70,7 @@ if (transport !== "tcp") { throw new TypeError(`Unsupported transport: '${transport}'`); } - const [rid, localAddr] = ops.op_net_listen_tls( + const { 0: rid, 1: localAddr } = ops.op_net_listen_tls( { hostname, port }, { cert, certFile, key, keyFile, alpnProtocols, reusePort }, ); @@ -86,7 +86,7 @@ alpnProtocols = undefined, } = {}, ) { - const [rid, localAddr, remoteAddr] = await opStartTls({ + const { 0: rid, 1: localAddr, 2: remoteAddr } = await opStartTls({ rid: conn.rid, hostname, certFile, |