Fix bugs introduced by jsid change

This commit is contained in:
Luke Wagner
2010-06-16 22:58:31 -07:00
parent 941b1c497c
commit e143ab8a88
7 changed files with 9 additions and 8 deletions

View File

@@ -618,9 +618,9 @@ GetIterator(JSContext *cx, JSObject *obj, uintN flags, Value *vp)
/* Store in *vp to protect it from GC (callers must root vp). */
vp->setNonFunObj(*iterobj);
NativeIterator *ni = keysOnly
? SnapshotKeys(cx, obj, flags, shapes.begin(), shapes.length(), key)
: SnapshotValues(cx, obj, flags, shapes.begin(), shapes.length(), key);
NativeIterator *ni = (flags & JSITER_FOREACH)
? SnapshotValues(cx, obj, flags, shapes.begin(), shapes.length(), key)
: SnapshotKeys(cx, obj, flags, shapes.begin(), shapes.length(), key);
if (!ni)
return false;