8000 Preserve literal prototype keys when decoding objects by Aschenbath · Pull Request #162 · kawanet/msgpack-lite · GitHub
[go: up one dir, main page]

Skip to content

Preserve literal prototype keys when decoding objects - #162

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

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

Conversation

@Aschenbath
Copy link
Copy Markdown
Contributor

Decoded maps now retain proto as an own data property instead of invoking the prototype setter. Non-string keys retain normal property-key coercion, and ordinary string keys keep the assignment fast path. Tests cover both binary backends and an array map key which coerces to proto.

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