From e88cd882f5646539a9eef1f8a717a0f0a39c1781 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 26 Mar 2018 13:40:15 +0200 Subject: [PATCH] lib: move Pipe/TCPConnectWrap to obj destructuring This commit moves PipeConnectWrap and TCPConnectWrap into the object destructuring assigments that already exist for pipe_wrap and tcp_wrap. PR-URL: https://github.com/nodejs/node/pull/19611 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Weijia Wang Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- lib/net.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/net.js b/lib/net.js index c9116fb1a80a81..aa5709981ca3da 100644 --- a/lib/net.js +++ b/lib/net.js @@ -42,11 +42,17 @@ const { const { Buffer } = require('buffer'); const TTYWrap = process.binding('tty_wrap'); -const { TCP, constants: TCPConstants } = process.binding('tcp_wrap'); -const { Pipe, constants: PipeConstants } = process.binding('pipe_wrap'); -const { TCPConnectWrap } = process.binding('tcp_wrap'); -const { PipeConnectWrap } = process.binding('pipe_wrap'); const { ShutdownWrap } = process.binding('stream_wrap'); +const { + TCP, + TCPConnectWrap, + constants: TCPConstants +} = process.binding('tcp_wrap'); +const { + Pipe, + PipeConnectWrap, + constants: PipeConstants +} = process.binding('pipe_wrap'); const { newAsyncId, defaultTriggerAsyncIdScope,