Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-03-24 16:19:35 +0300
committerMyles Borins <mylesborins@google.com>2020-03-26 17:23:29 +0300
commitbdfbbf6c68da7a413d5e7101ce135ea41e4e81f4 (patch)
tree78b6bf4ad6f351f5926f17f8c29aca5ecb938a43 /doc/api
parentafb5639119c91afc8c6f5c078468fe6f7775f8a2 (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>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/n-api.md5
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