Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5fe011a

Browse filesBrowse files
mhdawsontargos
authored andcommitted
node-api: add missing initialization of last error
- Add missing initiatlization of last error which was reported by coverity. Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #41290 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
1 parent e808ee6 commit 5fe011a
Copy full SHA for 5fe011a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Collapse file

‎src/js_native_api_v8.h‎

Copy file name to clipboardExpand all lines: src/js_native_api_v8.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ struct napi_env__ {
5656
: isolate(context->GetIsolate()),
5757
context_persistent(isolate, context) {
5858
CHECK_EQ(isolate, context->GetIsolate());
59+
napi_clear_last_error(this);
5960
}
6061
virtual ~napi_env__() {
6162
// First we must finalize those references that have `napi_finalizer`

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.