Back out 66882ea6f8c7 (bug 788293) and 32f09cb3c7b6 (bug 834090) for bustage
CLOSED TREE
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
#include "jsproxy.h"
|
||||
#include "jsscript.h"
|
||||
|
||||
#if JS_HAS_XML_SUPPORT
|
||||
#include "jsxml.h"
|
||||
#endif
|
||||
|
||||
#include "builtin/ParallelArray.h"
|
||||
#include "ds/Sort.h"
|
||||
#include "frontend/TokenStream.h"
|
||||
@@ -147,8 +151,11 @@ EnumerateNativeProperties(JSContext *cx, HandleObject pobj, unsigned flags, IdSe
|
||||
for (; !r.empty(); r.popFront()) {
|
||||
Shape &shape = r.front();
|
||||
|
||||
if (!Enumerate(cx, pobj, shape.propid(), shape.enumerable(), flags, ht, props))
|
||||
if (!JSID_IS_DEFAULT_XML_NAMESPACE(shape.propid()) &&
|
||||
!Enumerate(cx, pobj, shape.propid(), shape.enumerable(), flags, ht, props))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
::Reverse(props->begin() + initialLength, props->end());
|
||||
@@ -257,6 +264,10 @@ Snapshot(JSContext *cx, RawObject pobj_, unsigned flags, AutoIdVector *props)
|
||||
if (flags & JSITER_OWNONLY)
|
||||
break;
|
||||
|
||||
#if JS_HAS_XML_SUPPORT
|
||||
if (pobj->isXML())
|
||||
break;
|
||||
#endif
|
||||
} while ((pobj = pobj->getProto()) != NULL);
|
||||
|
||||
#ifdef JS_MORE_DETERMINISTIC
|
||||
|
||||
Reference in New Issue
Block a user