summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-dgram-bind-fd.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-08-23 09:49:35 -0400
committercjihrig <cjihrig@gmail.com>2018-08-31 09:27:44 -0400
commitc8950cdabc2f8cd0b146797f2045a67974687d5a (patch)
tree30c43426134a4b0030cca0e3e5e12bf9095e5d55 /test/parallel/test-cluster-dgram-bind-fd.js
parent98b5d66629d55a3e0a1a3c4680dbbeba5922bcf2 (diff)
downloadnode-new-c8950cdabc2f8cd0b146797f2045a67974687d5a.tar.gz
dgram: make process.binding('udp_wrap') internal
PR-URL: https://github.com/nodejs/node/pull/22475 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Diffstat (limited to 'test/parallel/test-cluster-dgram-bind-fd.js')
-rw-r--r--test/parallel/test-cluster-dgram-bind-fd.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-dgram-bind-fd.js b/test/parallel/test-cluster-dgram-bind-fd.js
index 429f932608..7b6fb89501 100644
--- a/test/parallel/test-cluster-dgram-bind-fd.js
+++ b/test/parallel/test-cluster-dgram-bind-fd.js
@@ -1,3 +1,4 @@
+// Flags: --expose-internals
'use strict';
const common = require('../common');
if (common.isWindows)
@@ -9,7 +10,6 @@ const PACKETS_PER_WORKER = 10;
const assert = require('assert');
const cluster = require('cluster');
const dgram = require('dgram');
-const { UDP } = process.binding('udp_wrap');
if (cluster.isMaster)
master();
@@ -18,6 +18,9 @@ else
function master() {
+ const { internalBinding } = require('internal/test/binding');
+ const { UDP } = internalBinding('udp_wrap');
+
// Create a handle and use its fd.
const rawHandle = new UDP();
const err = rawHandle.bind(common.localhostIPv4, 0, 0);