From d6317d0a45a36b19336745e1e96e9ae9204b7633 Mon Sep 17 00:00:00 2001 From: dnlup Date: Wed, 20 Mar 2019 11:21:51 +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/create_dynamic_module.js`. PR-URL: https://github.com/nodejs/node/pull/26803 Refs: https://github.com/nodejs/node/issues/26546 Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Yongsheng Zhang --- lib/internal/modules/esm/create_dynamic_module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/esm/create_dynamic_module.js b/lib/internal/modules/esm/create_dynamic_module.js index d3e74263c40708..6b8fee4f4e6e18 100644 --- a/lib/internal/modules/esm/create_dynamic_module.js +++ b/lib/internal/modules/esm/create_dynamic_module.js @@ -3,7 +3,7 @@ const { ArrayPrototype } = primordials; const { ModuleWrap, callbackMap } = internalBinding('module_wrap'); -const debug = require('util').debuglog('esm'); +const debug = require('internal/util/debuglog').debuglog('esm'); const createDynamicModule = (exports, url = '', evaluate) => { debug('creating ESM facade for %s with exports: %j', url, exports);