From 9fda9123b1c6b7308fc9df7a0dc73175a7c8e23b Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 24 Mar 2020 06:19:35 -0700 Subject: [PATCH] doc: trim wording in n-api.md text about exceptions PR-URL: https://github.com/nodejs/node/pull/32457 Reviewed-By: James M Snell Reviewed-By: Myles Borins --- doc/api/n-api.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index c6bdb172eb7181..6989bcdeab6c69 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