Skip to content

Commit fc62f87

Browse files
authored
Replace arguments.callee with AssertionError
1 parent b36f593 commit fc62f87

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)