diff options
author | Carrie Coxwell <carrie.coxwell@gmail.com> | 2018-04-29 13:29:40 -0500 |
---|---|---|
committer | Matheus Marchini <matheus@sthima.com> | 2018-05-03 15:33:58 -0300 |
commit | 4d8806fc407a127833d483ccd1cc8b35f33528c8 (patch) | |
tree | a6731d978d5eb3dbdaf547a3b2771bc1aeffd27b /lib/util.js | |
parent | a00f76c360a223464f330b8a19612c8a0991f6c8 (diff) | |
download | android-node-v8-4d8806fc407a127833d483ccd1cc8b35f33528c8.tar.gz android-node-v8-4d8806fc407a127833d483ccd1cc8b35f33528c8.tar.bz2 android-node-v8-4d8806fc407a127833d483ccd1cc8b35f33528c8.zip |
util: named anonymous functions
PR-URL: https://github.com/nodejs/node/pull/20408
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js index 91404d254d..a47f6305f4 100644 --- a/lib/util.js +++ b/lib/util.js @@ -276,12 +276,12 @@ function debuglog(set) { if (!debugs[set]) { if (debugEnvRegex.test(set)) { const pid = process.pid; - debugs[set] = function() { + debugs[set] = function debug() { const msg = exports.format.apply(exports, arguments); console.error('%s %d: %s', set, pid, msg); }; } else { - debugs[set] = function() {}; + debugs[set] = function debug() {}; } } return debugs[set]; |