0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

ircd::js: trap GC handler must be 'noexcept' apropos JS.

This commit is contained in:
Jason Volk 2016-11-07 16:30:57 -08:00
parent 559bc530c8
commit f92f117edc

View file

@ -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