Skip to content

Commit fb52715

Browse files
authored
Merge pull request #9 from shvaikalesh/patch-2
Replace `arguments.callee` with `AssertionError`
2 parents b36f593 + fc62f87 commit fb52715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function AssertionError (message, _props, ssf) {
6666
}
6767

6868
// capture stack trace
69-
ssf = ssf || arguments.callee;
70-
if (ssf && Error.captureStackTrace) {
69+
ssf = ssf || AssertionError;
70+
if (Error.captureStackTrace) {
7171
Error.captureStackTrace(this, ssf);
7272
} else {
7373
try {

0 commit comments

Comments
 (0)