doc: clean up weird notes about reentrancy

All N-API methods are reentrant, it does not make sense to talk
about specific ones here.

Some of these methods can run JS code, which of course can run
other N-API code. For those methods, let’s note that down explicitly.

PR-URL: https://github.com/nodejs/node/pull/40107
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
Anna Henningsen 2021-09-14 14:22:51 +02:00 committed by Michaël Zasso
parent 7c77db0243
commit da13561fb3
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600
1 changed files with 4 additions and 4 deletions

View File

@ -3303,7 +3303,6 @@ Returns `napi_ok` if the API succeeded.
This API implements the abstract operation `ToBoolean()` as defined in
[Section 7.1.2][] of the ECMAScript Language Specification.
This API can be re-entrant if getters are defined on the passed-in `Object`.
### napi_coerce_to_number
<!-- YAML
@ -3325,7 +3324,8 @@ Returns `napi_ok` if the API succeeded.
This API implements the abstract operation `ToNumber()` as defined in
[Section 7.1.3][] of the ECMAScript Language Specification.
This API can be re-entrant if getters are defined on the passed-in `Object`.
This function potentially runs JS code if the passed-in value is an
object.
### napi_coerce_to_object
<!-- YAML
@ -3347,7 +3347,6 @@ Returns `napi_ok` if the API succeeded.
This API implements the abstract operation `ToObject()` as defined in
[Section 7.1.13][] of the ECMAScript Language Specification.
This API can be re-entrant if getters are defined on the passed-in `Object`.
### napi_coerce_to_string
<!-- YAML
@ -3369,7 +3368,8 @@ Returns `napi_ok` if the API succeeded.
This API implements the abstract operation `ToString()` as defined in
[Section 7.1.13][] of the ECMAScript Language Specification.
This API can be re-entrant if getters are defined on the passed-in `Object`.
This function potentially runs JS code if the passed-in value is an
object.
### napi_typeof
<!-- YAML