From 5ff1dad8a2bbcb238c836e71d73b1a4d959cd322 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 --- 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');