Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1b9c40c

Browse filesBrowse files
ccoxwellMylesBorins
authored andcommitted
util: named anonymous functions
PR-URL: #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>
1 parent 391c420 commit 1b9c40c
Copy full SHA for 1b9c40c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/util.js‎

Copy file name to clipboardExpand all lines: lib/util.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ function debuglog(set) {
277277
if (!debugs[set]) {
278278
if (debugEnvRegex.test(set)) {
279279
const pid = process.pid;
280-
debugs[set] = function() {
280+
debugs[set] = function debug() {
281281
const msg = exports.format.apply(exports, arguments);
282282
console.error('%s %d: %s', set, pid, msg);
283283
};
284284
} else {
285-
debugs[set] = function() {};
285+
debugs[set] = function debug() {};
286286
}
287287
}
288288
return debugs[set];

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.