mirror of
https://github.com/matrix-construct/construct
synced 2025-02-19 18:20:19 +01:00
ircd::js: Remove boolean return type from trap hook for enumeration.
This commit is contained in:
parent
bf540caead
commit
e214d6e40c
2 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ class trap
|
|||
virtual void on_add(object::handle, id::handle, value::handle);
|
||||
virtual bool on_del(object::handle, id::handle);
|
||||
virtual bool on_has(object::handle, id::handle);
|
||||
virtual bool on_enu(object::handle);
|
||||
virtual void on_enu(object::handle);
|
||||
virtual void on_ctor(object &, const args &);
|
||||
virtual void on_dtor(JSObject &);
|
||||
|
||||
|
|
|
@ -612,7 +612,8 @@ noexcept try
|
|||
|
||||
auto &trap(from(obj));
|
||||
trap.debug("enu");
|
||||
return trap.on_enu(obj);
|
||||
trap.on_enu(obj);
|
||||
return true;
|
||||
}
|
||||
catch(const jserror &e)
|
||||
{
|
||||
|
@ -897,10 +898,9 @@ ircd::js::trap::on_ctor(object &obj,
|
|||
{
|
||||
}
|
||||
|
||||
bool
|
||||
void
|
||||
ircd::js::trap::on_enu(object::handle)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Add table
Reference in a new issue