Skip to content

Avoid using hasOwnProperty on message objects directly - #6080

Merged
knolleary merged 1 commit into
mainfrom
has-own-property-fixes
Nov 9, 2026
Merged

knolleary merged 1 commit into
mainfrom
has-own-property-fixes

Conversation

@knolleary

Copy link
Copy Markdown
Member

This updates all of the core nodes to not do things like msg.hasOwnProperty(...) - instead to use Object.prototype.hasOwnPrototype.call(msg, ...) - this avoids any instances where the referenced object is null and/or has overridden hasOwnPrototype

@knolleary
knolleary merged commit 25a0161 into main Nov 9, 2026
3 checks passed
@knolleary
knolleary deleted the has-own-property-fixes branch November 9, 2026 13:31
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