[INFER] Inlined natives for Array.{push,pop}, object flag cleanup, bug 653962.
This commit is contained in:
@@ -496,6 +496,9 @@ VectorToKeyIterator(JSContext *cx, JSObject *obj, uintN flags, AutoIdVector &key
|
||||
{
|
||||
JS_ASSERT(!(flags & JSITER_FOREACH));
|
||||
|
||||
if (obj)
|
||||
cx->markTypeObjectFlags(obj->getType(), types::OBJECT_FLAG_ITERATED);
|
||||
|
||||
JSObject *iterobj = NewIteratorObject(cx, flags);
|
||||
if (!iterobj)
|
||||
return false;
|
||||
@@ -543,6 +546,9 @@ VectorToValueIterator(JSContext *cx, JSObject *obj, uintN flags, AutoIdVector &k
|
||||
{
|
||||
JS_ASSERT(flags & JSITER_FOREACH);
|
||||
|
||||
if (obj)
|
||||
cx->markTypeObjectFlags(obj->getType(), types::OBJECT_FLAG_ITERATED);
|
||||
|
||||
JSObject *iterobj = NewIteratorObject(cx, flags);
|
||||
if (!iterobj)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user