From db7c4ac40bcd80a678e80086bd9b006955e4ec45 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');