Skip to content

Commit 9fda912

Browse files
TrottMylesBorins
authored andcommitted
doc: trim wording in n-api.md text about exceptions
PR-URL: #32457 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent 3e002c3 commit 9fda912

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/n-api.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,8 @@ This API can be called even if there is a pending JavaScript exception.
799799
### Exceptions
800800

801801
Any N-API function call may result in a pending JavaScript exception. This is
802-
obviously the case for any function that may cause the execution of
803-
JavaScript, but N-API specifies that an exception may be pending
804-
on return from any of the API functions.
802+
the case for any of the API functions, even those that may not cause the
803+
execution of JavaScript.
805804

806805
If the `napi_status` returned by a function is `napi_ok` then no
807806
exception is pending and no additional action is required. If the

0 commit comments

Comments
 (0)