mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::js: Fix erroneous has() exception.
This commit is contained in:
parent
3bfb3d3319
commit
afefb2db07
1 changed files with 4 additions and 1 deletions
|
@ -1103,7 +1103,10 @@ ircd::js::has(const object::handle &src,
|
|||
|
||||
value tmp;
|
||||
if(!JS_GetProperty(*cx, obj, part, &tmp) || undefined(tmp))
|
||||
throw internal_error("%s", part);
|
||||
{
|
||||
ret = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if(!JS_ValueToObject(*cx, tmp, &obj) || !obj.get())
|
||||
fail = part;
|
||||
|
|
Loading…
Reference in a new issue