From 037e3fddfad0da5e1f4d4c4a95de49f1a0c9cf37 Mon Sep 17 00:00:00 2001 From: dnlup Date: Wed, 20 Mar 2019 14:18:48 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell --- lib/internal/modules/esm/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index a1a16219090e90..aff12113688b44 100644 --- a/lib/internal/modules/esm/loader.js +++ b/lib/internal/modules/esm/loader.js @@ -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