summaryrefslogtreecommitdiff
path: root/test/parallel/test-tcp-wrap-listen.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-08-15 17:14:22 -0700
committerJames M Snell <jasnell@gmail.com>2018-08-19 12:46:10 -0700
commit884b23daf723db60ebe939e6dde492fa5f9230eb (patch)
treefeb159647324b4fd00024d72ea464cd4cbe161ab /test/parallel/test-tcp-wrap-listen.js
parent7108893ec8fb3b3ee8538c82640fa61ac7014e38 (diff)
downloadandroid-node-v8-884b23daf723db60ebe939e6dde492fa5f9230eb.tar.gz
android-node-v8-884b23daf723db60ebe939e6dde492fa5f9230eb.tar.bz2
android-node-v8-884b23daf723db60ebe939e6dde492fa5f9230eb.zip
stream: move process.binding('stream_wrap') to internalBinding
PR-URL: https://github.com/nodejs/node/pull/22345 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-tcp-wrap-listen.js')
-rw-r--r--test/parallel/test-tcp-wrap-listen.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-tcp-wrap-listen.js b/test/parallel/test-tcp-wrap-listen.js
index 8203a4771b..7df5a11ff1 100644
--- a/test/parallel/test-tcp-wrap-listen.js
+++ b/test/parallel/test-tcp-wrap-listen.js
@@ -1,9 +1,11 @@
+// Flags: --expose-internals
'use strict';
const common = require('../common');
const assert = require('assert');
+const { internalBinding } = require('internal/test/binding');
const { TCP, constants: TCPConstants } = process.binding('tcp_wrap');
-const WriteWrap = process.binding('stream_wrap').WriteWrap;
+const { WriteWrap } = internalBinding('stream_wrap');
const server = new TCP(TCPConstants.SOCKET);