Skip to content

Commit 9dffc2b

Browse files
DaAitchMylesBorins
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 8bebbd6 commit 9dffc2b

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
@@ -4059,7 +4059,7 @@ NAPI_EXTERN napi_status napi_open_callback_scope(napi_env env,
40594059
napi_callback_scope* result)
40604060
```
40614061
- `[in] env`: The environment that the API is invoked under.
4062-
- `[in] resource_object`: An optional object associated with the async work
4062+
- `[in] resource_object`: An object associated with the async work
40634063
that will be passed to possible `async_hooks` [`init` hooks][].
40644064
- `[in] context`: Context for the async operation that is
40654065
invoking the callback. This should be a value previously obtained

0 commit comments

Comments
 (0)