Skip to content

Commit

Permalink
internal/errors: prevent stack recalculation
Browse files Browse the repository at this point in the history
Newer v8 versions exclude the constructor from the stack trace
so the recalculation of the trace can be avoided.
  • Loading branch information
BridgeAR committed Jun 19, 2017
1 parent f0baeea commit e16faad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ function makeNodeError(Base) {
constructor(key, ...args) {
super(message(key, args));
this[kCode] = key;
Error.captureStackTrace(this, NodeError);
}

get name() {
Expand Down

0 comments on commit e16faad

Please sign in to comment.