Skip to content

Commit

Permalink
assert: reduce internal usage of public require of util
Browse files Browse the repository at this point in the history
PR-URL: nodejs#26762
Refs: nodejs#26546
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
sasurau4 authored and BridgeAR committed Mar 21, 2019
1 parent 245c96e commit de3b164
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,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');

Expand Down

0 comments on commit de3b164

Please sign in to comment.