From cfa0c11983771a1d73840520884ae82729018cba Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Tue, 15 Jul 2014 18:04:25 -0700 Subject: [PATCH] remove replace deprecated setting of __proto__ in error.js --- util/error.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/error.js b/util/error.js index 6b64997..58f4cc9 100644 --- a/util/error.js +++ b/util/error.js @@ -15,7 +15,7 @@ function MissingSourceError(msg, missingTxHash) { this.name = 'MissingSourceError'; }; -MissingSourceError.prototype.__proto__ = Error.prototype; +MissingSourceError.prototype = Object.create(Error.prototype); exports.MissingSourceError = MissingSourceError; @@ -38,6 +38,6 @@ function VerificationError(msg, missingTxHash) { this.name = 'VerificationError'; }; -VerificationError.prototype.__proto__ = Error.prototype; +VerificationError.prototype = Object.create(Error.prototype); exports.VerificationError = VerificationError;