Skip to content

fix: replace __proto__ with Object.setPrototypeOf - #1064

Open
titanism wants to merge 1 commit into
jaredhanson:masterfrom
titanism:fix/replace-proto-with-setprototypeof
Open

fix: replace __proto__ with Object.setPrototypeOf#1064
titanism wants to merge 1 commit into
jaredhanson:masterfrom
titanism:fix/replace-proto-with-setprototypeof

Conversation

@titanism

@titanism titanism commented Aug 5, 2026

Copy link
Copy Markdown

__proto__ is deprecated (Annex B) and breaks under Node.js --disable-proto=delete / --disable-proto=throw.

This replaces AuthenticationError.prototype.__proto__ = Error.prototype with Object.setPrototypeOf(AuthenticationError.prototype, Error.prototype) which is the standard equivalent (ES2015+, Node 4+).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant