summaryrefslogtreecommitdiff
path: root/test/parallel/test-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-dgram-bind-fd.js
parent98b5d66629d55a3e0a1a3c4680dbbeba5922bcf2 (diff)
downloadandroid-node-v8-c8950cdabc2f8cd0b146797f2045a67974687d5a.tar.gz
android-node-v8-c8950cdabc2f8cd0b146797f2045a67974687d5a.tar.bz2
android-node-v8-c8950cdabc2f8cd0b146797f2045a67974687d5a.zip
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-dgram-bind-fd.js')
-rw-r--r--test/parallel/test-dgram-bind-fd.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-dgram-bind-fd.js b/test/parallel/test-dgram-bind-fd.js
index c4a80abb92..8c81cb118c 100644
--- a/test/parallel/test-dgram-bind-fd.js
+++ b/test/parallel/test-dgram-bind-fd.js
@@ -1,3 +1,4 @@
+// Flags: --expose-internals
'use strict';
const common = require('../common');
if (common.isWindows)
@@ -5,7 +6,8 @@ if (common.isWindows)
const assert = require('assert');
const dgram = require('dgram');
-const { UDP } = process.binding('udp_wrap');
+const { internalBinding } = require('internal/test/binding');
+const { UDP } = internalBinding('udp_wrap');
const { UV_UDP_REUSEADDR } = process.binding('constants').os;
const BUFFER_SIZE = 4096;