diff options
author | Rich Trott <rtrott@gmail.com> | 2020-03-24 16:19:35 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2020-03-26 17:23:29 +0300 |
commit | bdfbbf6c68da7a413d5e7101ce135ea41e4e81f4 (patch) | |
tree | 78b6bf4ad6f351f5926f17f8c29aca5ecb938a43 | |
parent | afb5639119c91afc8c6f5c078468fe6f7775f8a2 (diff) |
doc: trim wording in n-api.md text about exceptions
PR-URL: https://github.com/nodejs/node/pull/32457
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
-rw-r--r-- | doc/api/n-api.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index c6bdb172eb7..6989bcdeab6 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -799,9 +799,8 @@ This API can be called even if there is a pending JavaScript exception. ### Exceptions Any N-API function call may result in a pending JavaScript exception. This is -obviously the case for any function that may cause the execution of -JavaScript, but N-API specifies that an exception may be pending -on return from any of the API functions. +the case for any of the API functions, even those that may not cause the +execution of JavaScript. If the `napi_status` returned by a function is `napi_ok` then no exception is pending and no additional action is required. If the |