From 4bfa387f6dc8976833f45dd8e41b130b508ad88a 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 98915c2420..67e22c7d39 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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);