nit fix for bug 558754 and remove bogus spot-fix that didn't have review (r=brendan)

This commit is contained in:
Andreas Gal
2010-05-12 13:12:53 -07:00
parent 607dcb9698
commit 2cfedd9bd7
2 changed files with 1 additions and 3 deletions

View File

@@ -170,6 +170,7 @@ Enumerate(JSContext *cx, JSObject *obj, jsid id, bool enumerable, uintN flags,
}
if (flags & JSITER_FOREACH) {
jsval *vp = vec.end() - 1;
if (!obj->getProperty(cx, id, vp))
return false;
if (flags & JSITER_KEYVALUE && !NewKeyValuePair(cx, id, *vp, vp))