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

doc: napi_create_range_error has incorrect prototype #20623

Closed

Description

@primeare

Function napi_create_range_error in documentation has prototype:

NODE_EXTERN napi_status napi_create_range_error(napi_env env,
                                                napi_value code,
                                                const char* msg,
                                                napi_value* result);

where msg has type const char*. But according to node_api.h the prototype should be:

NAPI_EXTERN napi_status napi_create_range_error(napi_env env,
                                                napi_value code,
                                                napi_value msg,
                                                napi_value* result);

with msg having type napi_value.

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    node-apiIssues and PRs related to Node-API.
    on May 9, 2018
  2. mhdawson commented on May 9, 2018

    @mhdawson
    Member

    Fixing.

  3. mhdawson commented on May 9, 2018

    @mhdawson
    Member

    PR with fix, #20641

  4. mhdawson commented on May 9, 2018

    @mhdawson
    Member

    @primeare thanks for reporting, I also fixed NODE_EXTERN->NAPI_EXTERN throughout the doc

  5. shobhitchittora commented on May 12, 2018

    @shobhitchittora
    Contributor

    @mhdawson if fixed, can this issue be closed ? Thanks.

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

    docIssues and PRs related to Node.js documentation.node-apiIssues and PRs related to Node-API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions