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 Antoine du Hamel committed 2026-02-17 19:16:42 +01:00
1 parent e26a7e464d
commit 7cf4c43582
1 file changed
+1 -1
+1 -1
View File
@@ -486,7 +486,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);