Skip to content

Commit f8bb544

Browse files
DaAitchaddaleax
authored andcommitted
doc: fix napi_open_callback_scope description
- parameter `resource_object` is mandatory PR-URL: #25366 Reviewed-By: Michael Dawson <[email protected]>
1 parent 23d41fb commit f8bb544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/n-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4118,7 +4118,7 @@ NAPI_EXTERN napi_status napi_open_callback_scope(napi_env env,
41184118
napi_callback_scope* result)
41194119
```
41204120
- `[in] env`: The environment that the API is invoked under.
4121-
- `[in] resource_object`: An optional object associated with the async work
4121+
- `[in] resource_object`: An object associated with the async work
41224122
that will be passed to possible `async_hooks` [`init` hooks][].
41234123
- `[in] context`: Context for the async operation that is
41244124
invoking the callback. This should be a value previously obtained

0 commit comments

Comments
 (0)