Commit c2259c9
src: reset error struct if error code is napi_ok
PR-URL: #40552
Refs: nodejs/node-addon-api#1089
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>1 parent a8cc8b6 commit c2259c9Copy full SHA for c2259c9
File tree
Expand file treeCollapse file tree
3 files changed
+8
-4
lines changedOpen diff view settings
Filter options
- src
- test/js-native-api
Expand file treeCollapse file tree
3 files changed
+8
-4
lines changedOpen diff view settings
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
761 | 761 | |
762 | 762 | |
763 | 763 | |
764 | | - |
765 | 764 | |
766 | 765 | |
767 | 766 | |
768 | 767 | |
769 | 768 | |
| 769 | + |
| 770 | + |
| 771 | + |
770 | 772 | |
771 | 773 | |
772 | 774 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
159 | 159 | |
160 | 160 | |
161 | 161 | |
| 162 | + |
162 | 163 | |
163 | 164 | |
164 | 165 | |
|
Collapse file
test/js-native-api/common.h
Copy file name to clipboardExpand all lines: test/js-native-api/common.h+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
| 11 | + |
11 | 12 | |
12 | 13 | |
13 | 14 | |
14 | | - |
15 | | - |
16 | | - |
| 15 | + |
| 16 | + |
| 17 | + |
17 | 18 | |
18 | 19 | |
19 | 20 | |
|
0 commit comments