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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user