From d17e19fa05aff7d77367cdd78c4da9c4171ae2ea Mon Sep 17 00:00:00 2001 From: Julian Romain Date: Mon, 7 Apr 2025 11:34:53 +0200 Subject: [PATCH] Remove arguments.callee from AuthenticationError --- lib/errors/authenticationerror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/errors/authenticationerror.js b/lib/errors/authenticationerror.js index 2b1da147..5d6ab091 100644 --- a/lib/errors/authenticationerror.js +++ b/lib/errors/authenticationerror.js @@ -6,7 +6,7 @@ */ function AuthenticationError(message, status) { Error.call(this); - Error.captureStackTrace(this, arguments.callee); + Error.captureStackTrace(this, AuthenticationError); this.name = 'AuthenticationError'; this.message = message; this.status = status || 401;