module: remove usage of require('util') in esm/loader.js

Use `require('internal/util/debuglog').debuglog` instead of
`require('util').debuglog` in `lib/internal/modules/esm/loader.js`.

PR-URL: https://github.com/nodejs/node/pull/26804
Refs: https://github.com/nodejs/node/issues/26546
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
dnlup authored and Ruben Bridgewater committed 2019-03-25 00:33:06 +01:00
1 parent 005528ac82
commit ad661ca209
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ const translators = require('internal/modules/esm/translators');
const FunctionBind = Function.call.bind(Function.prototype.bind);
const debug = require('util').debuglog('esm');
const debug = require('internal/util/debuglog').debuglog('esm');
/* A Loader instance is used as the main entry point for loading ES modules.
* Currently, this is a singleton -- there is only one used for loading