File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,7 @@ void CaptureStackTraces(const FunctionCallbackInfo<Value> &args) {
113113 futures.emplace_back (std::async (
114114 std::launch::async,
115115 [thread_name, state](Isolate *isolate) -> ThreadResult {
116- return {.thread_name = thread_name,
117- .state = state,
118- .stack_frames = CaptureStackTrace (isolate)};
116+ return ThreadResult{thread_name, state, CaptureStackTrace (isolate)};
119117 },
120118 thread_isolate));
121119 }
@@ -237,9 +235,7 @@ void RegisterThread(const FunctionCallbackInfo<Value> &args) {
237235 std::lock_guard<std::mutex> lock (threads_mutex);
238236 auto found = threads.find (isolate);
239237 if (found == threads.end ()) {
240- threads.emplace (isolate, ThreadInfo{.thread_name = thread_name,
241- .last_seen = milliseconds::zero (),
242- .state = " " });
238+ threads.emplace (isolate, ThreadInfo{thread_name, milliseconds::zero (), " " });
243239 // Register a cleanup hook to remove this thread when the isolate is
244240 // destroyed
245241 node::AddEnvironmentCleanupHook (isolate, Cleanup, isolate);
You can’t perform that action at this time.
0 commit comments