We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e808ee6 commit 5fe011aCopy full SHA for 5fe011a
src/js_native_api_v8.h
@@ -56,6 +56,7 @@ struct napi_env__ {
56
: isolate(context->GetIsolate()),
57
context_persistent(isolate, context) {
58
CHECK_EQ(isolate, context->GetIsolate());
59
+ napi_clear_last_error(this);
60
}
61
virtual ~napi_env__() {
62
// First we must finalize those references that have `napi_finalizer`
0 commit comments