File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -548,12 +548,12 @@ operations. Callback functions must satisfy the following signature:
548
548
typedef void (*napi_async_execute_callback)(napi_env env, void* data);
549
549
```
550
550
551
- Implementations of this type of function should avoid making any N-API calls
552
- that could result in the execution of JavaScript or interaction with
553
- JavaScript objects. Most often, any code that needs to make N-API
554
- calls should be made in `napi_async_complete_callback` instead.
555
- Avoid using the `napi_env` parameter in the execute callback as
556
- it will likely execute JavaScript.
551
+ Implementations of this function must avoid making N-API calls
552
+ that execute JavaScript or interact with
553
+ JavaScript objects. N-API
554
+ calls should be in the `napi_async_complete_callback` instead.
555
+ Do not use the `napi_env` parameter as it will likely
556
+ result in execution of JavaScript.
557
557
558
558
#### napi_async_complete_callback
559
559
<!-- YAML
You can’t perform that action at this time.
0 commit comments