镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Create public API replacement for process.binding('uv') #37951

Description

@addaleax

process.binding('uv') currently yields some information that I don’t think we expose as public API:

  1. uv.errname(), which can be trivially replaced by util.getSystemErrorName(), but also
  2. 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

  1. addaleax commented on Mar 27, 2021

    @addaleax
    MemberAuthor
  2. EladKeyshawn commented on Apr 5, 2021

    @EladKeyshawn

    @addaleax Hey is this still relevant?

  3. EladKeyshawn commented on Apr 5, 2021

    @EladKeyshawn

    I added a suggestion of implementation for this at #38101 I hope I understood the need correctly.

  4. addaleax commented on Apr 6, 2021

    @addaleax
    MemberAuthor

    @EladKeyshawn I think something like that would work here, yes 👍

  5. added a commit that references this issue on Apr 15, 2021
  6. added a commit that references this issue on May 1, 2021
  7. added a commit that references this issue on May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecationsIssues and PRs related to deprecations.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions