From fbe6d30bcfe9773ba9e69b3e3a9f28082b194545 Mon Sep 17 00:00:00 2001 From: dnlup Date: Wed, 20 Mar 2019 11:54:33 +0100 Subject: [PATCH] module: remove usage of require('util') Use `require('internal/util/debuglog').debuglog` instead of `require('util').debuglog` in `lib/internal/modules/esm/module_map.js`. Refs: https://github.com/nodejs/node/issues/26546 PR-URL: https://github.com/nodejs/node/pull/26805 Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Yongsheng Zhang --- lib/internal/modules/esm/module_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/esm/module_map.js b/lib/internal/modules/esm/module_map.js index 1c1cd54a3d79ed..01521fb7885ee1 100644 --- a/lib/internal/modules/esm/module_map.js +++ b/lib/internal/modules/esm/module_map.js @@ -4,7 +4,7 @@ const ModuleJob = require('internal/modules/esm/module_job'); const { SafeMap } = primordials; -const debug = require('util').debuglog('esm'); +const debug = require('internal/util/debuglog').debuglog('esm'); const { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes; const { validateString } = require('internal/validators');