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 --- lib/os.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/os.js') diff --git a/lib/os.js b/lib/os.js index ace39c8e12..9a05201ea4 100644 --- a/lib/os.js +++ b/lib/os.js @@ -21,7 +21,8 @@ 'use strict'; -const { pushValToArrayMax, safeGetenv } = process.binding('util'); +const { internalBinding } = require('internal/bootstrap/loaders'); +const { pushValToArrayMax, safeGetenv } = internalBinding('util'); const constants = process.binding('constants').os; const { deprecate } = require('internal/util'); const isWindows = process.platform === 'win32'; -- cgit v1.2.3