From 9a8622b603c4aaffde20a0c1279ceab2be9c93a7 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`. Refs: https://github.com/nodejs/node/issues/26546 --- 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