mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user