File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4672,14 +4672,18 @@ napi_status napi_get_cb_info(napi_env env,
4672
4672
* `[in] env`: The environment that the API is invoked under.
4673
4673
* `[in] cbinfo`: The callback info passed into the callback function.
4674
4674
* `[in-out] argc`: Specifies the length of the provided `argv` array and
4675
- receives the actual count of arguments.
4675
+ receives the actual count of arguments. `argc` can
4676
+ optionally be ignored by passing `NULL`.
4676
4677
* `[out] argv`: Buffer to which the `napi_value` representing the arguments are
4677
4678
copied. If there are more arguments than the provided count, only the
4678
4679
requested number of arguments are copied. If there are fewer arguments
4679
4680
provided than claimed, the rest of `argv` is filled with `napi_value` values
4680
- that represent `undefined`.
4681
- * `[out] this`: Receives the JavaScript `this` argument for the call.
4682
- * `[out] data`: Receives the data pointer for the callback.
4681
+ that represent `undefined`. `argv` can optionally be ignored by
4682
+ passing `NULL`.
4683
+ * `[out] this`: Receives the JavaScript `this` argument for the call. `this`
4684
+ can optionally be ignored by passing `NULL`.
4685
+ * `[out] data`: Receives the data pointer for the callback. `data` can
4686
+ optionally be ignored by passing `NULL`.
4683
4687
4684
4688
Returns `napi_ok` if the API succeeded.
4685
4689
You can’t perform that action at this time.
0 commit comments