Bug 1054882 - Rollup patch. r=till, r=sstangl, r=jorendorff
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "vm/Interpreter.h"
|
||||
#include "vm/Shape.h"
|
||||
#include "vm/StopIterationObject.h"
|
||||
#include "vm/TypedArrayCommon.h"
|
||||
|
||||
#include "jsinferinlines.h"
|
||||
#include "jsobjinlines.h"
|
||||
@@ -148,9 +149,9 @@ EnumerateNativeProperties(JSContext *cx, HandleObject pobj, unsigned flags, IdSe
|
||||
}
|
||||
}
|
||||
|
||||
/* Collect any typed array elements from this object. */
|
||||
if (pobj->is<TypedArrayObject>()) {
|
||||
size_t len = pobj->as<TypedArrayObject>().length();
|
||||
/* Collect any typed array or shared typed array elements from this object. */
|
||||
if (IsAnyTypedArray(pobj)) {
|
||||
size_t len = AnyTypedArrayLength(pobj);
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
if (!Enumerate(cx, pobj, INT_TO_JSID(i), /* enumerable = */ true, flags, ht, props))
|
||||
return false;
|
||||
@@ -711,7 +712,7 @@ js::GetIterator(JSContext *cx, HandleObject obj, unsigned flags, MutableHandleVa
|
||||
do {
|
||||
if (!pobj->isNative() ||
|
||||
!pobj->hasEmptyElements() ||
|
||||
pobj->is<TypedArrayObject>() ||
|
||||
IsAnyTypedArray(pobj) ||
|
||||
pobj->hasUncacheableProto() ||
|
||||
pobj->getOps()->enumerate ||
|
||||
pobj->getClass()->enumerate != JS_EnumerateStub ||
|
||||
|
||||
Reference in New Issue
Block a user