Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
events: don't inherit from Object.prototype#6092
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
8680b06 to 2cec8a1Comparemscdex commented Apr 7, 2016
mscdex commented Apr 7, 2016
Also, there is no performance regression with this change 💃 |
thefourtheye commented Apr 7, 2016
Can we make use of the test changes in #2350? |
mscdex commented Apr 7, 2016
@thefourtheye The included tests should cover it I think |
evanlucas commented Apr 7, 2016
@mscdex will this have any affect on |
vkurchatkin commented Apr 7, 2016
@evanlucas it makes sense to simply call |
2cec8a1 to 3711c52Comparemscdex commented Apr 7, 2016
@evanlucas Fixed. CI again: https://ci.nodejs.org/job/node-test-pull-request/2196/ |
evanlucas commented Apr 7, 2016
LGTM |
src/node.cc Outdated
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.
Is this process._events?
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.
Yes.
Fishrock123 commented Apr 7, 2016
Hmmm, can this be back-ported? Theoretically, this could be considered a security issue for unvalidated input. |
mscdex commented Apr 7, 2016
@Fishrock123 It's definitely a semver-major change, but I don't recall how that plays out with backporting/LTS/etc. |
mscdex commented Apr 7, 2016
jasnell commented Apr 7, 2016
I don't believe back porting would be possible to v4. It might be safe to get into v5 tho. |
jasnell commented Apr 7, 2016
LGTM |
mscdex commented Apr 7, 2016
CI is green except for a flaky test and citgm is green. |
mscdex commented Apr 18, 2016
CI again one last time: https://ci.nodejs.org/job/node-test-pull-request/2305/ |
jasnell commented Apr 18, 2016
Still LGTM |
This commit safely allows event names that are named the same as properties that are ordinarily inherited from Object.prototype such as __proto__. Fixes: nodejs#728 PR-URL: nodejs#6092 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]>
3711c52 to e38badeCompareFishrock123 commented Apr 19, 2016
iirc usually we don't care about warnings |
jasnell commented Apr 19, 2016
Typically, but it's nice to avoid them when possible to do so, no? |
Fishrock123 commented Apr 19, 2016 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I guess, just consider though, that there are tons of warnings of the same and there isn't necessarily easy ways to avoid it. |
This patch fixes the warning introduced by the changes in e38bade. Ref: nodejs#6092
This patch fixes the warning introduced by the changes in e38bade. Ref: #6092 PR-URL: #6276 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
This commit safely allows event names that are named the same as properties that are ordinarily inherited from Object.prototype such as __proto__. Fixes: nodejs#728 PR-URL: nodejs#6092 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]>
This patch fixes the warning introduced by the changes in e38bade. Ref: nodejs#6092 PR-URL: nodejs#6276 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
This commit safely allows event names that are named the same as properties that are ordinarily inherited from Object.prototype such as __proto__. Fixes: #728 PR-URL: #6092 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]>
This patch fixes the warning introduced by the changes in e38bade. Ref: #6092 PR-URL: #6276 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
Checklist
Affected core subsystem(s)
Description of change
This commit safely allows event names that are named the same as properties that are ordinarily inherited from
Object.prototypesuch as__proto__.Fixes: #728