Skip to content

Commit

Permalink
Use Object.create for Error prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
quaertym committed Oct 29, 2014
1 parent 6f6cfeb commit 5ab831c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function DependencyError(message) {
}
}

DependencyError.prototype = Error.prototype;
DependencyError.prototype = Object.create(Error.prototype);
DependencyError.prototype.constructor = DependencyError;

var isGitRepo = function(str) {
Expand Down

0 comments on commit 5ab831c

Please sign in to comment.