diff options
author | cjihrig <cjihrig@gmail.com> | 2018-07-21 01:17:21 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-07-28 00:35:09 -0400 |
commit | 3f6ee7578103fc6f25a0711d2df98ebf39c6620d (patch) | |
tree | dfbeadacd5c4e77047d3c66cedff28a63cc60292 /test/parallel | |
parent | 79e41cc7b071228b22906b8d44d3c9c649a9628b (diff) | |
download | node-new-3f6ee7578103fc6f25a0711d2df98ebf39c6620d.tar.gz |
dgram: make _createSocketHandle() internal only
_createSocketHandle() is used internally by the cluster module.
This commit makes it internal only API.
PR-URL: https://github.com/nodejs/node/pull/21923
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel')
-rw-r--r-- | test/parallel/test-dgram-create-socket-handle.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-dgram-create-socket-handle.js b/test/parallel/test-dgram-create-socket-handle.js index 57480f7d2c..e49e3e8dd6 100644 --- a/test/parallel/test-dgram-create-socket-handle.js +++ b/test/parallel/test-dgram-create-socket-handle.js @@ -1,9 +1,9 @@ +// Flags: --expose-internals 'use strict'; const common = require('../common'); const assert = require('assert'); -const dgram = require('dgram'); +const { _createSocketHandle } = require('internal/dgram'); const UDP = process.binding('udp_wrap').UDP; -const _createSocketHandle = dgram._createSocketHandle; // Throws if an "existing fd" is passed in. common.expectsError(() => { |