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-net-persistent-nodelay.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-net-persistent-nodelay.js')
-rw-r--r-- | test/parallel/test-net-persistent-nodelay.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-net-persistent-nodelay.js b/test/parallel/test-net-persistent-nodelay.js index bb2a9dfd22..de7f0a7f65 100644 --- a/test/parallel/test-net-persistent-nodelay.js +++ b/test/parallel/test-net-persistent-nodelay.js @@ -1,8 +1,10 @@ +// Flags: --expose-internals 'use strict'; require('../common'); const assert = require('assert'); const net = require('net'); -const TCPWrap = process.binding('tcp_wrap').TCP; +const { internalBinding } = require('internal/test/binding'); +const TCPWrap = internalBinding('tcp_wrap').TCP; const echoServer = net.createServer(function(connection) { connection.end(); |