-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Create public API replacement for process.binding('uv') #37951
Labels
deprecations
Issues and PRs related to deprecations.
Comments
/cc @jasnell |
@addaleax Hey is this still relevant? |
I added a suggestion of implementation for this at #38101 I hope I understood the need correctly. |
@EladKeyshawn I think something like that would work here, yes 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
process.binding('uv')
currently yields some information that I don’t think we expose as public API:uv.errname()
, which can be trivially replaced byutil.getSystemErrorName()
, but alsogetErrorMap()
to access them in Map form (with theirstrerror()
’ed description)We could decide to drop the second bit from the API, but I think it’s worth exposing at least a full list of libuv error codes somewhere, and then implement a backwards-compatible replacement for
process.binding('uv')
in terms of that new API.The text was updated successfully, but these errors were encountered: