summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-09-03 11:16:48 -0400
committercjihrig <cjihrig@gmail.com>2018-09-05 21:53:11 -0400
commit7e4b0a4850a5c7d9e14824db20f818db947305d3 (patch)
tree881b344d32d89908583355d71b54703d72f7c77e /benchmark
parent04195adaa953e339d71dff7ae59d5261a0294895 (diff)
downloadandroid-node-v8-7e4b0a4850a5c7d9e14824db20f818db947305d3.tar.gz
android-node-v8-7e4b0a4850a5c7d9e14824db20f818db947305d3.tar.bz2
android-node-v8-7e4b0a4850a5c7d9e14824db20f818db947305d3.zip
util: make util binding internal
Refs: https://github.com/nodejs/node/issues/22160 PR-URL: https://github.com/nodejs/node/pull/22675 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/util/type-check.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/util/type-check.js b/benchmark/util/type-check.js
index e1d1ac553f..d9ba7bc209 100644
--- a/benchmark/util/type-check.js
+++ b/benchmark/util/type-check.js
@@ -38,7 +38,8 @@ function main({ type, argument, version, n }) {
// For testing, if supplied with an empty type, default to ArrayBufferView.
type = type || 'ArrayBufferView';
- const util = process.binding('util');
+ const { internalBinding } = require('internal/test/binding');
+ const util = internalBinding('util');
const types = require('internal/util/types');
const func = { native: util, js: types }[version][`is${type}`];