-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: remove unnecessary nonInternalExists check #14664
Conversation
Two issues:
|
As this is a semver-major, PTAL @nodejs/ctc |
PTAL @nodejs/tsc |
I have to admit that I shared @mscdex’s concerns. |
Ping @ChALkeR ... any way we can get some stats on whether this function is used by userland? |
How do we further progress here? As this is semver-major anyway @nodejs/tsc PTAL |
It would definitely be best to just deprecate the function and make it internal. That is always the safe way. @JacksonTian would you be so kind and refactor this accordingly? I doubt that this will land as is otherwise and I would like to get this progressing again. |
When refactoring can you please rebase against master |
The NativeModule.nonInternalExists(request) is unnecessary in Module._resolveLookupPaths(), because the check is pre-exist in Module._resolveFilename()
a6c8d0b
to
d33739d
Compare
Rebased with current master. |
@JacksonTian do you still want to work on this? In that case it should be refactored to move the functionality to the internal part and deprecate the original one. |
Closing due to long inactivity and no response. @JacksonTian please reopen if this is worked on again. |
The NativeModule.nonInternalExists(request) is unnecessary in
Module._resolveLookupPaths(), because the check is pre-exist in
Module._resolveFilename()
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
module