diff options
author | Philipp Renoth <renoth@wildoak.de> | 2019-01-06 06:06:47 +0100 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2019-01-13 23:03:35 +0200 |
commit | 9e7d4cac3f13966e5e2a691d8d90ad659f1907c5 (patch) | |
tree | d0a5557fca6411b2bfbd0253fdd31aa2c44f4f1d | |
parent | c24fccf06460581a8b788ca4784bfef89eedf8f1 (diff) | |
download | android-node-v8-9e7d4cac3f13966e5e2a691d8d90ad659f1907c5.tar.gz android-node-v8-9e7d4cac3f13966e5e2a691d8d90ad659f1907c5.tar.bz2 android-node-v8-9e7d4cac3f13966e5e2a691d8d90ad659f1907c5.zip |
doc: fix `napi_open_callback_scope` description
- parameter `resource_object` is mandatory
PR-URL: https://github.com/nodejs/node/pull/25366
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
-rw-r--r-- | doc/api/n-api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index bcda526f87..fa30b8290f 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -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 |