Skip to content

doc: napi_create_range_error has incorrect prototype #20623

Description

@primeare

Function napi_create_range_error in documentation has prototype:

NODE_EXTERNnapi_statusnapi_create_range_error(napi_envenv,
napi_valuecode,
constchar*msg,
napi_value*result);

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

NAPI_EXTERNnapi_statusnapi_create_range_error(napi_envenv,
napi_valuecode,
napi_valuemsg,
napi_value*result);

with msg having type napi_value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.node-apiIssues and PRs related to the Node-API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions