diff options
author | Anna Henningsen <anna@addaleax.net> | 2021-09-14 15:22:51 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-09-18 17:15:26 +0300 |
commit | da13561fb3140e2f3b6beb8f45c3bfdf74b4b1bc (patch) | |
tree | f960547706f89d5a0ee9918503eeea39b3221eea /doc/api/n-api.md | |
parent | 7c77db024394e94381c2d4664e1066f794dc33da (diff) |
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>
Diffstat (limited to 'doc/api/n-api.md')
-rw-r--r-- | doc/api/n-api.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index f9ce2bca436..b8b389a2ba6 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -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 |