-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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 object with null prototype for various app properties #4861
Use object with null prototype for various app properties #4861
Conversation
This has been open for over a year. No rush from me, but let me know if there's anything I can do to move this along. |
I could work with the conflicts in this PR, but I do not have write access. |
`app.cache`, `app.engines`, and `app.settings` are now created with `Object.create(null)` instead of `{}`. This also updates a test to ensure that `app.locals` is created the same way.
a2348c8
to
68d1b9e
Compare
Fixed the merge conflict. I think this is now ready to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for managing the conflicts @EvanHahn
See discussion here.
app.cache
,app.engines
, andapp.settings
are now created withObject.create(null)
instead of{}
.This also adds a test that
app.locals
is created the same way.