mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user