Please sign in to comment.
n-api: Retain last code when getting error info
Unlike most N-API functions, `napi_get_last_error_info()` should not clear the last error code when successful, because a pointer to (not a copy of) the error info structure is returned via an out parameter. PR-URL: #13087 Reviewed-By: Anna Henningsen <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com> Reviewed-By: Michael Dawson <firstname.lastname@example.org>
- Loading branch information...
Showing with 9 additions and 1 deletion.