From 8dd5f6e01efb1444bc0ff10207eb96a96095e01d Mon Sep 17 00:00:00 2001 From: Daiki Ihara Date: Tue, 19 Mar 2019 09:05:06 +0900 Subject: [PATCH] assert: reduce internal usage of public require of util PR-URL: https://github.com/nodejs/node/pull/26762 Refs: https://github.com/nodejs/node/issues/26546 Reviewed-By: Yongsheng Zhang Reviewed-By: Masashi Hirano Reviewed-By: Ruben Bridgewater --- lib/assert.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/assert.js b/lib/assert.js index e32cae3cffbc17..7434152d6c09c6 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -29,7 +29,8 @@ const { codes: { } } = require('internal/errors'); const AssertionError = require('internal/assert/assertion_error'); const { openSync, closeSync, readSync } = require('fs'); -const { inspect, types: { isPromise, isRegExp } } = require('util'); +const { inspect } = require('internal/util/inspect'); +const { isPromise, isRegExp } = require('internal/util/types'); const { EOL } = require('internal/constants'); const { NativeModule } = require('internal/bootstrap/loaders');