Fix bugs; browser is up and running

This commit is contained in:
Luke Wagner
2010-06-18 00:59:10 -07:00
parent be3bcef26f
commit 43c26f6d22
7 changed files with 27 additions and 17 deletions

View File

@@ -802,9 +802,7 @@ js_SuppressDeletedProperty(JSContext *cx, JSObject *obj, jsid id)
again:
NativeIterator *ni = iterobj->getNativeIterator();
/* This only works for identified surpressed keys, not values. */
if (ni->flags & JSITER_FOREACH)
continue;
if (ni->obj == obj && ni->props_cursor < ni->props_end) {
if ((ni->flags & JSITER_FOREACH) && ni->obj == obj && ni->props_cursor < ni->props_end) {
/* Check whether id is still to come. */
jsid *props_cursor = (jsid *)ni->props_cursor;
jsid *props_end = (jsid *)ni->props_end;