Bug 581769 - fix JS_ValueToId on xml object. remove spurious iterator assert (r=waldo)

This commit is contained in:
Luke Wagner
2010-07-26 17:05:17 -07:00
parent ea074835aa
commit ee4b9ef134
5 changed files with 22 additions and 7 deletions

View File

@@ -203,8 +203,6 @@ Enumerate(JSContext *cx, JSObject *obj, JSObject *pobj, jsid id,
bool enumerable, bool sharedPermanent, uintN flags, IdSet& ht,
typename EnumPolicy::ResultVector &props)
{
JS_ASSERT(JSID_IS_INT(id) || JSID_IS_ATOM(id));
IdSet::AddPtr p = ht.lookupForAdd(id);
JS_ASSERT_IF(obj == pobj && !obj->isProxy(), !p);