mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01: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:
parent
5cf3c3e24c
commit
4bfa387f6d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user