You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create public API replacement for process.binding('uv') #37951
process.binding('uv') currently yields some information that I don’t think we expose as public API:
uv.errname(), which can be trivially replaced by util.getSystemErrorName(), but also
a full list of mapped UV error codes and getErrorMap() to access them in Map form (with their strerror()’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.
Activity
addaleax commentedon Mar 27, 2021
/cc @jasnell
EladKeyshawn commentedon Apr 5, 2021
@addaleax Hey is this still relevant?
EladKeyshawn commentedon Apr 5, 2021
I added a suggestion of implementation for this at #38101 I hope I understood the need correctly.
addaleax commentedon Apr 6, 2021
@EladKeyshawn I think something like that would work here, yes 👍
util: add getSystemErrorMap() impl
util: add getSystemErrorMap() impl
util: add getSystemErrorMap() impl
util: add getSystemErrorMap() impl