From 3244e4476d27f804fc697d98c15726d08cdb611e Mon Sep 17 00:00:00 2001 From: calvintwr Date: Thu, 18 Jun 2020 23:53:37 +0800 Subject: [PATCH] __proto__ deprecated, replaced by #setPrototypeOf --- 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..1263e6d9 100644 --- a/lib/errors/authenticationerror.js +++ b/lib/errors/authenticationerror.js @@ -13,7 +13,7 @@ function AuthenticationError(message, status) { } // Inherit from `Error`. -AuthenticationError.prototype.__proto__ = Error.prototype; +Object.setPrototypeOf(AuthenticationError.prototype, Error.prototype); // Expose constructor.