Skip to content

Commit 5476633

Browse files
author
Conor
committed
stash at unhandled
1 parent a322a1c commit 5476633

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/promise.cxx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,7 @@ struct mixin_frame {
421421

422422
constexpr static auto final_suspend() noexcept -> final_awaitable { return {}; }
423423

424-
constexpr static void unhandled_exception() noexcept {
425-
// TODO: stash exception in parent
426-
std::terminate();
427-
}
424+
constexpr void unhandled_exception(this auto &self) noexcept { stash_current_exception(&self.frame); }
428425
};
429426

430427
// =============== Promise (void) =============== //

0 commit comments

Comments
 (0)