From 7e4b0a4850a5c7d9e14824db20f818db947305d3 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 3 Sep 2018 11:16:48 -0400 Subject: util: make util binding internal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/22160 PR-URL: https://github.com/nodejs/node/pull/22675 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Gus Caplan Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- benchmark/util/type-check.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'benchmark') 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}`]; -- cgit v1.2.3