diff --git a/src/node_errors.cc b/src/node_errors.cc index c7a449c8c50a4a..23a65bd2251d62 100644 --- a/src/node_errors.cc +++ b/src/node_errors.cc @@ -319,6 +319,7 @@ void OnFatalError(const char* location, const char* message) { } #ifdef NODE_REPORT Isolate* isolate = Isolate::GetCurrent(); + HandleScope handle_scope(isolate); Environment* env = Environment::GetCurrent(isolate); if (env != nullptr) { std::shared_ptr options = env->isolate_data()->options();