mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::js: trap GC handler must be 'noexcept' apropos JS.
This commit is contained in:
parent
559bc530c8
commit
f92f117edc
1 changed files with 5 additions and 7 deletions
12
ircd/js.cc
12
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
|
||||
|
|
Loading…
Reference in a new issue