We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad5d8e3 commit 14c3af7Copy full SHA for 14c3af7
src/api/callback.cc
@@ -79,7 +79,6 @@ InternalCallbackScope::~InternalCallbackScope() {
79
void InternalCallbackScope::Close() {
80
if (closed_) return;
81
closed_ = true;
82
- HandleScope handle_scope(env_->isolate());
83
84
if (!env_->can_call_into_js()) return;
85
if (failed_ && !env_->is_main_thread() && env_->is_stopping()) {
@@ -117,6 +116,7 @@ void InternalCallbackScope::Close() {
117
116
return;
118
}
119
+ HandleScope handle_scope(env_->isolate());
120
Local<Object> process = env_->process_object();
121
122
0 commit comments