Skip to content

Docs (N-API): napi_create_function docs inconsistent #21606

Closed
@s-h-a-d-o-w

Description

@s-h-a-d-o-w
  • Subsystem: N-API

See the description of parameters:
https://github.com/nodejs/node/blob/master/doc/api/n-api.md#napi_create_function
vs.
https://github.com/nodejs/node/blob/master/doc/api/n-api.md#napi_create_function-1

The first one appears to be correct - it takes 6 parameters, not 5.

Might be beneficial to link from one part of the docs to the other, so that you don't have to maintain docs for this function in two places?

Metadata

Metadata

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