Skip to content

Commit

Permalink
doc: fix napi_open_callback_scope description
Browse files Browse the repository at this point in the history
- parameter `resource_object` is mandatory

PR-URL: #25366
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
DaAitch authored and addaleax committed Jan 14, 2019
1 parent 23d41fb commit f8bb544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4118,7 +4118,7 @@ NAPI_EXTERN napi_status napi_open_callback_scope(napi_env env,
napi_callback_scope* result)
```
- `[in] env`: The environment that the API is invoked under.
- `[in] resource_object`: An optional object associated with the async work
- `[in] resource_object`: An object associated with the async work
that will be passed to possible `async_hooks` [`init` hooks][].
- `[in] context`: Context for the async operation that is
invoking the callback. This should be a value previously obtained
Expand Down

0 comments on commit f8bb544

Please sign in to comment.