mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +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;
|
value tmp;
|
||||||
if(!JS_GetProperty(*cx, obj, part, &tmp) || undefined(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())
|
if(!JS_ValueToObject(*cx, tmp, &obj) || !obj.get())
|
||||||
fail = part;
|
fail = part;
|
||||||
|
|
Loading…
Reference in a new issue