Skip to content

Commit

Permalink
Add error stack
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Mar 5, 2016
1 parent ba51874 commit 8b71ed2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -96,6 +96,8 @@
this.message = message
if (Error.captureStackTrace) {
Error.captureStackTrace(this, _stackStart || AssertionError)
} else {
this.stack = (new Error()).stack
}
}
AssertionError.prototype = Object.create(Error.prototype)
Expand Down

0 comments on commit 8b71ed2

Please sign in to comment.