File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,10 @@ typedef void (*napi_async_execute_callback)(napi_env env, void* data);
462
462
Implementations of this type of function should avoid making any N-API calls
463
463
that could result in the execution of JavaScript or interaction with
464
464
JavaScript objects. Most often, any code that needs to make N-API
465
- calls should be made in `napi_async_complete_callback` instead.
465
+ calls should be made in `napi_async_complete_callback` instead. The
466
+ current recommendation is to avoid all usage of the
467
+ napi_env parameter in the execute callback as it will most
468
+ likely cause JavaScript to be executed.
466
469
467
470
#### napi_async_complete_callback
468
471
<!-- YAML
@@ -4027,7 +4030,10 @@ task respectively.
4027
4030
The `execute` function should avoid making any N-API calls
4028
4031
that could result in the execution of JavaScript or interaction with
4029
4032
JavaScript objects. Most often, any code that needs to make N-API
4030
- calls should be made in `complete` callback instead.
4033
+ calls should be made in `complete` callback instead. The
4034
+ current recommendation is to avoid all usage of the
4035
+ napi_env parameter in the execute callback as it will most
4036
+ likely cause JavaScript to be executed.
4031
4037
4032
4038
These functions implement the following interfaces:
4033
4039
You can’t perform that action at this time.
0 commit comments