-
Notifications
You must be signed in to change notification settings - Fork 30k
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
module: fix main lookup regression from #18728 #18788
Conversation
b419326
to
3e9066c
Compare
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.
This can be fast tracked IMO
Also, that's weird @guybedford - it shouldn't be possible as far as I know :O http://coliru.stacked-crooked.com/a/efc7c335a197e56d |
@guybedford What was the regression? |
@jdalton the process of applying the package.json @benjamingr that is really odd then that there was not even a compiler warning, and seems like it could be a problem! Since we don't have compiler warnings for these cases, do you think I should just extend bool for these enums and switch their parity so they can be treated as booleans without breaking? Just thinking of maintainability here. |
Landed in 7748865 🎉 |
PR-URL: nodejs#18788 Refs: nodejs#18728 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
this should be backported with #18728 |
PR-URL: nodejs#18788 Refs: nodejs#18728 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Backport-PR-URL: #18923 PR-URL: #18788 Refs: #18728 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#18788 Refs: nodejs#18728 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
There was a minor regression in #18728 in the package.json main resolution code path.
This includes a test and a fix, hopefully these sort of slips will become harder as the test coverage on the modules work increases.
@bnoordhuis one of the slips here was on the enum booleans being checked as booleans. I considered making them extend boolean, but I assumed the intention is that usage should always be explicit with these, although it's a shame this can't be caught by the compiler at all.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
modules