Skip to content

Commit

Permalink
Replace arguments.callee with AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
shvaikalesh committed Sep 6, 2017
1 parent b36f593 commit fc62f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function AssertionError (message, _props, ssf) {
}

// capture stack trace
ssf = ssf || arguments.callee;
if (ssf && Error.captureStackTrace) {
ssf = ssf || AssertionError;
if (Error.captureStackTrace) {
Error.captureStackTrace(this, ssf);
} else {
try {
Expand Down

0 comments on commit fc62f87

Please sign in to comment.