-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
add undefined type #17011
add undefined type #17011
Conversation
The commit log should explain what and, importantly, why. |
@leeseean Thanks so much for your first contribution 🎉 . Looks good to me. Could we change to commit message to something like this?
The Contributing.md doc describes how to update a commit message:
|
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 with the commit message improved
That is, we have these checks all over the place. It feels a bit haphazard to update them in just two places. If I'm being honest, I don't think it's very useful. Replacing (See what I did there?) |
(Wasn't particularly in favour in the first place and since the consensus is against it...)
If anyone is strongly against landing it, please speak up. Otherwise I am going to land this even though I personally agree that in this case there is not much benefit of changing it. |
I'm pretty -1 on this after having this sit for a while. There's no point to this change given that neither of these values takes an Object (and if someone passes an Object, it throws anyway, making performance irrelevant). The only reason to not use I might make it explicit if this is actually being considered to land and a CI gets started. |
@apapirovski I meant to land it, otherwise I would not have mentioned it. Your condition makes your "soft" -1 actually a "hard" one because it is not possible to land this in that case. How shall we progress here? |
@BridgeAR there is no CI at the moment so I don't know if there's intent to land it or not. I just don't see the benefit to this change in this particular part of the code. We have areas where making this change would be beneficial but not here. Anyway, I won't block it... it's not worth wasting everyone's time with it. |
Mini-CI (enough to test this change): https://ci.nodejs.org/job/node-test-commit-light/147/ |
PR-URL: nodejs#17011 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
PR-URL: #17011 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
PR-URL: #17011 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Do we want to land this on LTS or is it potentially a behavior change? |
PR-URL: nodejs#17011 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
add undefined type