Skip to content

Commit

Permalink
doc: trim wording in n-api.md text about exceptions
Browse files Browse the repository at this point in the history
PR-URL: #32457
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed Mar 26, 2020
1 parent 3e002c3 commit 9fda912
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fda912

Please sign in to comment.