8000 Ignore inherited properties when looking up extension packers by Aschenbath · Pull Request #163 · kawanet/msgpack-lite · GitHub
[go: up one dir, main page]

Skip to content

Ignore inherited properties when looking up extension packers - #163

Open
Aschenbath wants to merge 1 commit into
kawanet:mainfrom
Aschenbath:fix/oss30-20261124-9130-msgpack-packer-names
Open

Aschenbath wants to merge 1 commit into
kawanet:mainfrom
Aschenbath:fix/oss30-20261124-9130-msgpack-packer-names

Conversation

@Aschenbath
Copy link
Copy Markdown
Contributor

Use a prototype-free registry for named extension packers. A class named toString or valueOf now encodes its fields normally instead of accidentally invoking Object.prototype. Explicitly registered packers with those names still work.

Validation: the new regression fails on the original implementation; all 205 source tests pass on Node 24 / Windows. JSHint and browser/CommonJS bundle smoke checks also pass.

This branch has not been deployed

No deployments
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

0