File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ The following sections explain the approach for each case:
2626<a name =" exceptions " ></a >
2727
2828In most cases when an error occurs, the addon should do whatever cleanup is possible
29- and then return to JavaScript so that the error can be propagated. In less frequent
29+ and then return to JavaScript so that the error can be propagated. In less frequent
3030cases the addon may be able to recover from the error, clear the error and then
3131continue.
3232
@@ -48,8 +48,8 @@ method.
4848If a C++ exception of type ` Napi::Error ` escapes from a Node-API C++ callback, then
4949the Node-API wrapper automatically converts and throws it as a JavaScript exception.
5050
51- On return from a native method, node-addon-api will automatically convert a pending C++
52- exception to a JavaScript exception.
51+ On return from a native method, node-addon-api will automatically convert a pending
52+ ` Napi::Error ` C++ exception to a JavaScript exception.
5353
5454When C++ exceptions are enabled try/catch can be used to catch exceptions thrown
5555from calls to JavaScript and then they can either be handled or rethrown before
You can’t perform that action at this time.
0 commit comments