1 post found
December 1, 2026
Custom Error subclasses in TypeScript silently break instanceof checks when compiled to ES5. Learn exactly why the prototype chain snaps and the Object.setPrototypeOf fix that makes instanceof reliable again.