Skip to content

doc: fix node-api call example

The return statement should not be enclosed in a nested conditional branch.

Also, the NAPI_CALL macro is renamed to NODE_API_CALL in aligning with the n-api to node-api transition.

Fixes https://github.com/nodejs/node/issues/49311

Merge request reports

Loading