summaryrefslogtreecommitdiff
path: root/test/parallel/test-process-binding.js
diff options
context:
space:
mode:
authorWeijia Wang <381152119@qq.com>2018-08-17 16:33:45 +0800
committerWeijia Wang <starkwang@126.com>2018-10-15 19:01:20 +0800
commitac23e6557f3a9d4283e0d2f0948f871892669faf (patch)
treea58c76f411402ea6754b177103f23fc6e4dd77f2 /test/parallel/test-process-binding.js
parentea1565e09fbf668e805a648b3dd2a53b71d54946 (diff)
downloadnode-new-ac23e6557f3a9d4283e0d2f0948f871892669faf.tar.gz
buffer: move process.binding('buffer') to internalBinding
PR-URL: https://github.com/nodejs/node/pull/22370 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-process-binding.js')
-rw-r--r--test/parallel/test-process-binding.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-process-binding.js b/test/parallel/test-process-binding.js
index 3715826bb2..05bb0e6aa0 100644
--- a/test/parallel/test-process-binding.js
+++ b/test/parallel/test-process-binding.js
@@ -1,6 +1,8 @@
'use strict';
+// Flags: --expose-internals
require('../common');
const assert = require('assert');
+const { internalBinding } = require('internal/test/binding');
assert.throws(
function() {
@@ -9,4 +11,4 @@ assert.throws(
/No such module: test/
);
-process.binding('buffer');
+internalBinding('buffer');