Skip to content

Ignore settings on Object.prototype - #4803

Merged
dougwilson merged 1 commit into
expressjs:4.18from
EvanHahn:ignore-settings-on-object-prototype
Feb 21, 2022
Merged

Ignore settings on Object.prototype#4803
dougwilson merged 1 commit into
expressjs:4.18from
EvanHahn:ignore-settings-on-object-prototype

Conversation

@EvanHahn

Copy link
Copy Markdown
Contributor

Before:

app.get('hasOwnProperty');// => [Function: hasOwnProperty]app.enabled('hasOwnProperty');// => true

After:

app.get('hasOwnProperty');// => undefinedapp.enabled('hasOwnProperty');// => false

See #4802 for more details.

Comment threadlib/router/layer.js Outdated

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change isn't strictly related, but I figured we could use the new utility. Happy to revert.

@EvanHahn

Copy link
Copy Markdown
ContributorAuthor

No rush on my end, but let me know if you'd like me to do anything with this PR.

@dougwilsondougwilson mentioned this pull request Feb 19, 2022
20 tasks
@dougwilson
dougwilsonforce-pushed the ignore-settings-on-object-prototype branch from 5d0ff99 to 99043f5CompareFebruary 19, 2022 05:12
@dougwilsondougwilson added this to the 4.18 milestone Feb 19, 2022
@dougwilson
dougwilson changed the base branch from master to 4.18February 21, 2022 01:05
@dougwilson
dougwilsonforce-pushed the ignore-settings-on-object-prototype branch from 99043f5 to 2ddae30CompareFebruary 21, 2022 01:06

@dougwilsondougwilson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! i did end up removing the utils thing since we eventually want to get rid of utils and the only thing it was shared with, the router, was removed in 5.x anyway.

@dougwilson
dougwilson merged commit 2ddae30 into expressjs:4.18Feb 21, 2022
@EvanHahn
EvanHahn deleted the ignore-settings-on-object-prototype branch February 21, 2022 17:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@EvanHahn@dougwilson@ejcheng