Bug 461158 - Add missing error propagation. Patch from Igor Bukanov <igor@mir2.org>, r=brendan a=ss

git-svn-id: svn://10.0.0.236/trunk@256565 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com
2009-03-17 21:58:21 +00:00
parent 4d7574dbe1
commit d1e4653cda

View File

@@ -3460,6 +3460,8 @@ js_FindPropertyHelper(JSContext *cx, jsid id, JSObject **objp,
if (obj->map->ops->lookupProperty == js_LookupProperty) {
protoIndex =
js_LookupPropertyWithFlags(cx, obj, id, 0, &pobj, &prop);
if (protoIndex < 0)
return -1;
} else {
if (!OBJ_LOOKUP_PROPERTY(cx, obj, id, &pobj, &prop))
return -1;