Skip to content

Commit 4bfa387

Browse files
authored
lib: fix constructor in _errnoException stack tree
Fixes the constructor name in the stack tree for _errnoException. PR-URL: #60156 Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 5cf3c3e commit 4bfa387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function _errnoException(...args) {
339339
Error.stackTraceLimit = 0;
340340
const e = new ErrnoException(...args);
341341
Error.stackTraceLimit = limit;
342-
ErrorCaptureStackTrace(e, _exceptionWithHostPort);
342+
ErrorCaptureStackTrace(e, _errnoException);
343343
return e;
344344
}
345345
return new ErrnoException(...args);

0 commit comments

Comments
 (0)