Skip to content

Commit

Permalink
🙈 chore(eslint): Ignore portability-related use of __proto__.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Mar 15, 2021
1 parent 4ad2549 commit 9f791b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extendError.js
Expand Up @@ -24,6 +24,7 @@ export default function extendError ( parent, name ) {
if (Object.setPrototypeOf){
Object.setPrototypeOf(CustomError, Error);
} else {
// eslint-disable-next-line no-proto
CustomError.__proto__ = Error;
}

Expand Down

0 comments on commit 9f791b2

Please sign in to comment.