mirror of https://github.com/nodejs/node.git
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:
parent
7c77db0243
commit
da13561fb3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue