aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.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-env-newprotomethod-remove-unnecessary-prototypes.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-env-newprotomethod-remove-unnecessary-prototypes.js')
-rw-r--r--test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.js b/test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.js
index ff76e9fa5c..a2e2dabab0 100644
--- a/test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.js
+++ b/test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.js
@@ -7,13 +7,12 @@ require('../common');
const assert = require('assert');
const { internalBinding } = require('internal/test/binding');
-
[
- process.binding('udp_wrap').UDP.prototype.bind6,
+ internalBinding('udp_wrap').UDP.prototype.bind6,
internalBinding('tcp_wrap').TCP.prototype.bind6,
- process.binding('udp_wrap').UDP.prototype.send6,
+ internalBinding('udp_wrap').UDP.prototype.send6,
internalBinding('tcp_wrap').TCP.prototype.bind,
- process.binding('udp_wrap').UDP.prototype.close,
+ internalBinding('udp_wrap').UDP.prototype.close,
internalBinding('tcp_wrap').TCP.prototype.open
].forEach((binding, i) => {
assert.strictEqual('prototype' in binding, false, `Test ${i} failed`);