Skip to content

Commit e5700e7

Browse files
committed
fix build
1 parent b72e213 commit e5700e7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

module.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)