From 7cf4c4358294648cde6bc5a16613a60bb79b83be Mon Sep 17 00:00:00 2001 From: SeokHun Date: Mon, 13 Oct 2025 23:25:09 +0900 Subject: [PATCH] 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 Reviewed-By: Chengzhong Wu --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index fe063883eaa..0dd9060fd53 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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);