Skip to content

Commit ad8b158

Browse files
BridgeARaddaleax
authored andcommitted
errors: prevent stack recalculation
Newer v8 versions exclude the constructor from the stack trace so the recalculation of the trace can be avoided. PR-URL: #13743 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 816f98f commit ad8b158

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/internal/errors.js

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function makeNodeError(Base) {
2828
constructor(key, ...args) {
2929
super(message(key, args));
3030
this[kCode] = key;
31-
Error.captureStackTrace(this, NodeError);
3231
}
3332

3433
get name() {

0 commit comments

Comments
 (0)