Commit afd5966
napi: initialize and check status properly
Initialize status to napi_generic_failure and only check it after
having made an actual N-API call.
This fixes up 8fbace1.
PR-URL: #12283
Ref: #12279
Reviewed-By: Refael Ackermann <[email protected]>1 parent 14749f9 commit afd5966
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2162 | 2162 | | |
2163 | 2163 | | |
2164 | 2164 | | |
2165 | | - | |
| 2165 | + | |
2166 | 2166 | | |
2167 | 2167 | | |
2168 | 2168 | | |
| |||
2185 | 2185 | | |
2186 | 2186 | | |
2187 | 2187 | | |
2188 | | - | |
2189 | 2188 | | |
2190 | 2189 | | |
2191 | 2190 | | |
2192 | 2191 | | |
2193 | 2192 | | |
2194 | 2193 | | |
2195 | | - | |
2196 | 2194 | | |
2197 | 2195 | | |
2198 | 2196 | | |
| |||
0 commit comments