Skip to content

Commit

Permalink
Merge pull request #2295 from jonschlinkert/patch-1
Browse files Browse the repository at this point in the history
remove duplicate code
  • Loading branch information
Panya committed Jul 20, 2017
2 parents 7461b85 + 0e5fda2 commit ed96bbf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/errors.js
Expand Up @@ -12,12 +12,6 @@
exports.ParseError = ParseError;
exports.SyntaxError = SyntaxError;

/**
* Inherit from `Error.prototype`.
*/

SyntaxError.prototype.__proto__ = Error.prototype;

/**
* Initialize a new `ParseError` with the given `msg`.
*
Expand Down Expand Up @@ -55,4 +49,3 @@ function SyntaxError(msg) {
*/

SyntaxError.prototype.__proto__ = Error.prototype;

0 comments on commit ed96bbf

Please sign in to comment.