diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-08-21 08:54:02 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-08-24 09:10:38 +0200 |
commit | 57d98bc7323b4f72631074cd68a9306f33066bb8 (patch) | |
tree | 47c0f5cd1c8002ec29f6255aad5684265df8d450 /test/sequential/test-async-wrap-getasyncid.js | |
parent | 56e331a2a272cc36ed7c34be779de21fd5da3af7 (diff) | |
download | android-node-v8-57d98bc7323b4f72631074cd68a9306f33066bb8.tar.gz android-node-v8-57d98bc7323b4f72631074cd68a9306f33066bb8.tar.bz2 android-node-v8-57d98bc7323b4f72631074cd68a9306f33066bb8.zip |
src: move process.binding('tcp_wrap') to internal
This commit makes the tcp_wrap builtin an internal builtin, and
changes usage of the builtin from using process.binding('tcp_wrap')
to use internalBinding instead.
Refs: https://github.com/nodejs/node/issues/22160
PR-URL: https://github.com/nodejs/node/pull/22432
Refs: https://github.com/nodejs/node/issues/22160
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/sequential/test-async-wrap-getasyncid.js')
-rw-r--r-- | test/sequential/test-async-wrap-getasyncid.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js index 8000c5e4ca..9386c33199 100644 --- a/test/sequential/test-async-wrap-getasyncid.js +++ b/test/sequential/test-async-wrap-getasyncid.js @@ -207,7 +207,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check { const stream_wrap = internalBinding('stream_wrap'); - const tcp_wrap = process.binding('tcp_wrap'); + const tcp_wrap = internalBinding('tcp_wrap'); const server = net.createServer(common.mustCall((socket) => { server.close(); socket.on('data', () => { @@ -256,7 +256,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check - const { TCP, constants: TCPConstants } = process.binding('tcp_wrap'); + const { TCP, constants: TCPConstants } = internalBinding('tcp_wrap'); const tcp = new TCP(TCPConstants.SOCKET); const ca = fixtures.readSync('test_ca.pem', 'ascii'); |