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>
This commit is contained in:
Rich Trott
2020-03-24 06:19:35 -07:00
committed by Myles Borins
parent afb5639119
commit bdfbbf6c68

View File

@@ -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