diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 44a046f5650c4b..19208f5fefe3dd 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -279,6 +279,8 @@ valid up until an n-api function is called on the same `env`. information as it is not subject to SemVer and may change at any time. It is intended only for logging purposes. +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 @@ -504,7 +506,6 @@ Returns `napi_ok` if the API succeeded. This API returns a JavaScript RangeError with the text provided. - #### napi_get_and_clear_last_exception