bug 627016 - remove JSProperty out param from DefineNativeProperty. r=jorendorff

This commit is contained in:
Igor Bukanov
2011-01-21 14:10:16 +01:00
parent 850a34bccb
commit c5d6c2cd8f
22 changed files with 247 additions and 303 deletions

View File

@@ -800,8 +800,7 @@ array_getProperty(JSContext *cx, JSObject *obj, JSObject *receiver, jsid id, Val
}
vp->setUndefined();
if (js_LookupPropertyWithFlags(cx, proto, id, cx->resolveFlags,
&obj2, &prop) < 0)
if (!LookupPropertyWithFlags(cx, proto, id, cx->resolveFlags, &obj2, &prop))
return JS_FALSE;
if (prop && obj2->isNative()) {