-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
src: remove unused _external
getters
#13535
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
Conversation
These getters are unused in our source code, untested (apart from a test checking that the getters themselves do not throw) and are useless for JS code due to the opaqueness of `v8::External`s. I can’t really imagine addons depending on this, especially as it’s undocumented and very niche anyway, but I guess there’s no reason to not consider this semver-major. Ref: nodejs#13503
504e04e
to
5211152
Compare
I introduced them for a use-case in C++ addon that I had at that time. I can't recall what exactly that addon did, but it is practically impossible to fiddle with Does having them in core really harm anyone? Should we just document them? |
@indutny Yes, if you think these make sense to keep around I’d really prefer to document them. Otherwise they end up in this weird space between public API and internals, where nobody can even tell whether it’s a supported API or not. |
If they're going to be documented they shouldn't be underscore-prefixed. |
From a quick look it seems the JS Accessor is just for testing (pre |
From |
@refack We could probably get an addon test for these together, but I agree with what the others have said here; the current way in which they are exposed is not really meaningful. |
Sounds like an interesting venture. I haven't written a native addon since |
These getters are unused in our source code, untested (apart from a
test checking that the getters themselves do not throw) and are
useless for JS code due to the opaqueness of
v8::External
s.I can’t really imagine addons depending on this, especially as it’s
undocumented and very niche anyway, but I guess there’s no reason
to not consider this semver-major.
@indutny You introduced this in 6e08bb9, do you happen to remember why?
Ref: #13503
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
src/crypto