lib: fix constructor in _errnoException stack tree

Fixes the constructor name in the stack tree for _errnoException.

PR-URL: https://github.com/nodejs/node/pull/60156
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
SeokHun authored and GitHub committed 2025-10-13 14:25:09 +00:00
1 parent 5cf3c3e24c
commit 4bfa387f6d
1 file changed
+1 -1
+1 -1
View File
@@ -339,7 +339,7 @@ function _errnoException(...args) {
Error.stackTraceLimit = 0;
const e = new ErrnoException(...args);
Error.stackTraceLimit = limit;
ErrorCaptureStackTrace(e, _exceptionWithHostPort);
ErrorCaptureStackTrace(e, _errnoException);
return e;
}
return new ErrnoException(...args);