remove replace deprecated setting of __proto__ in error.js

This commit is contained in:
Ryan X. Charles 2014-07-15 18:04:25 -07:00
parent 9122807ecb
commit cfa0c11983

View File

@ -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;