Skip to content

Commit

Permalink
[BUGFIX beta] remove Error.captureStackTrace
Browse files Browse the repository at this point in the history
We only do this for stack cosmetic reasons, it really just removes 1 or so frames, but apparently more recently at a hefty cost:

context: #15516
  • Loading branch information
stefanpenner committed Jul 17, 2017
1 parent c5ed0f6 commit aa2712a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/ember-debug/lib/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ export default class EmberError extends ExtendBuiltin(Error) {
}

let error = Error.call(this, message);

if (Error.captureStackTrace) {
Error.captureStackTrace(this, EmberError);
} else {
this.stack = error.stack;
}

this.stack = error.stack;
this.description = error.description;
this.fileName = error.fileName;
this.lineNumber = error.lineNumber;
Expand Down

0 comments on commit aa2712a

Please sign in to comment.