summaryrefslogtreecommitdiff
path: root/lib/os.js
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 /lib/os.js
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 'lib/os.js')
-rw-r--r--lib/os.js3
1 files changed, 2 insertions, 1 deletions
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';