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:
26
26
<a name =" exceptions " ></a >
27
27
28
28
In 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
30
30
cases the addon may be able to recover from the error, clear the error and then
31
31
continue.
32
32
@@ -48,8 +48,8 @@ method.
48
48
If a C++ exception of type ` Napi::Error ` escapes from a Node-API C++ callback, then
49
49
the Node-API wrapper automatically converts and throws it as a JavaScript exception.
50
50
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.
53
53
54
54
When C++ exceptions are enabled try/catch can be used to catch exceptions thrown
55
55
from 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