[Disallow `instanceof Error` checks](https://github.com/sindresorhus/execa/issues/422#issuecomment-625750262). ## Fail ```js const isError = foo instanceof Error; ``` ## Pass ```js const isError = Object.prototype.toString.call(foo) === '[object Error]' ```