Fix bugs; browser is up and running
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user