Skip to content

Drop __proto__ keys#35

Merged
sindresorhus merged 5 commits intosindresorhus:mainfrom
ninevra:drop-proto-keys
Apr 7, 2021
Merged

Drop __proto__ keys#35
sindresorhus merged 5 commits intosindresorhus:mainfrom
ninevra:drop-proto-keys

Conversation

@ninevra
Copy link
Copy Markdown
Contributor

@ninevra ninevra commented Apr 6, 2021

Fixes #33 by dropping '__proto__' keys output by the mapper.

This shouldn't be a breaking change. It only affects behavior in cases that were previously buggy.

It's simple enough to instead throw errors on '__proto__' keys if that's what's desired.

@sindresorhus sindresorhus merged commit ddca73d into sindresorhus:main Apr 7, 2021
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.

__proto__ keys assign to the prototype

2 participants