Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Map for ClassValidator class lookup #481

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Jan 13, 2022

Using a Record/object to store user-supplied data is risky because the keys could collide with built-in javascript objects. Instead, we should use a Map which has no risk of collision.

@TwitchBronBron TwitchBronBron merged commit e172860 into master Jan 13, 2022
@TwitchBronBron TwitchBronBron deleted the ClassValidator-use-Map branch January 13, 2022 14:18
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.

None yet

2 participants