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/parallel/test-tcp-wrap.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/parallel/test-tcp-wrap.js')
-rw-r--r-- | test/parallel/test-tcp-wrap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-tcp-wrap.js b/test/parallel/test-tcp-wrap.js index f6a54a012b..f044d05a05 100644 --- a/test/parallel/test-tcp-wrap.js +++ b/test/parallel/test-tcp-wrap.js @@ -24,8 +24,8 @@ require('../common'); const assert = require('assert'); -const { TCP, constants: TCPConstants } = process.binding('tcp_wrap'); const { internalBinding } = require('internal/test/binding'); +const { TCP, constants: TCPConstants } = internalBinding('tcp_wrap'); const { UV_EINVAL } = internalBinding('uv'); const handle = new TCP(TCPConstants.SOCKET); |