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 2025-10-13 23:25:09 +09:00 committed by GitHub
parent 5cf3c3e24c
commit 4bfa387f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);