Bug 752092 - Support building SpiderMonkey without JS_HAS_XML_SUPPORT. r=terrence.

This commit is contained in:
Jason Orendorff
2012-05-14 18:53:30 -05:00
parent c55cdf619c
commit 31ce0c4155
19 changed files with 95 additions and 35 deletions

View File

@@ -379,8 +379,13 @@ Snapshot(JSContext *cx, JSObject *obj, unsigned flags, AutoIdVector *props)
}
}
if ((flags & JSITER_OWNONLY) || pobj->isXML())
if (flags & JSITER_OWNONLY)
break;
#if JS_HAS_XML_SUPPORT
if (pobj->isXML())
break;
#endif
} while ((pobj = pobj->getProto()) != NULL);
#ifdef JS_MORE_DETERMINISTIC