Skip to content
Closed
Prev Previous commit
Update lib/internal/errors.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
mmomtchev and aduh95 authored Dec 15, 2020
commit 7c1d773fc85933beb183487eecc02490e9b47276
4 changes: 2 additions & 2 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const prepareStackTrace = (globalThis, error, trace) => {
break;
}
}
Comment thread
aduh95 marked this conversation as resolved.
// userStackTraceLimit is the user value for Error.stackTraceLimit
// It is updated at every new exception
// `userStackTraceLimit` is the user value for `Error.stackTraceLimit`,
// it is updated at every new exception in `captureLargerStackTrace`.
if (trace.length > userStackTraceLimit)
ArrayPrototypeSplice(trace, userStackTraceLimit);
}
Expand Down