From f92f117edcd32505a288b79699aed158b719f230 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 7 Nov 2016 16:30:57 -0800 Subject: [PATCH] ircd::js: trap GC handler must be 'noexcept' apropos JS. --- ircd/js.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ircd/js.cc b/ircd/js.cc index f984824c5..457f5943c 100644 --- a/ircd/js.cc +++ b/ircd/js.cc @@ -682,16 +682,14 @@ noexcept try trap.debug("dtor %p", (const void *)obj); trap.on_gc(*obj); } -catch(const jserror &e) -{ - e.set_pending(); - return; -} catch(const std::exception &e) { auto &trap(from(*obj)); - trap.host_exception("dtor: %s", e.what()); - return; + log.critical("Unhandled on GC (fop: %p obj: %p): %s", + (const void *)op, + (const void *)obj, + e.what()); + assert(0); } bool