Skip to content

Commit

Permalink
Merge pull request #9 from shvaikalesh/patch-2
Browse files Browse the repository at this point in the history
Replace `arguments.callee` with `AssertionError`
  • Loading branch information
meeber committed Sep 6, 2017
2 parents b36f593 + fc62f87 commit fb52715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
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 fb52715

Please sign in to comment.