0
0
Fork 0
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:
Jason Volk 2016-10-27 22:59:22 -07:00
parent 3bfb3d3319
commit afefb2db07

View file

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