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) {
113
113
futures.emplace_back (std::async (
114
114
std::launch::async,
115
115
[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)};
119
117
},
120
118
thread_isolate));
121
119
}
@@ -237,9 +235,7 @@ void RegisterThread(const FunctionCallbackInfo<Value> &args) {
237
235
std::lock_guard<std::mutex> lock (threads_mutex);
238
236
auto found = threads.find (isolate);
239
237
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 (), " " });
243
239
// Register a cleanup hook to remove this thread when the isolate is
244
240
// destroyed
245
241
node::AddEnvironmentCleanupHook (isolate, Cleanup, isolate);
You can’t perform that action at this time.
0 commit comments