Bug 983053 - Don't suppress-deleted-elements on an object that's not in the middle of iteration. r=jorendorff

--HG--
extra : rebase_source : 3cd83274ff2050c864411ddf81ff9e74b0a8dfbe
This commit is contained in:
Jeff Walden 2014-03-25 10:29:59 -04:00
parent 6395ac8f05
commit 8f4ad94358

View File

@ -2444,10 +2444,6 @@ array_splice(JSContext *cx, unsigned argc, Value *vp)
/* Steps 12(c)-(d). */
obj->shrinkElements(cx, finalLength);
/* Fix running enumerators for the deleted items. */
if (!js_SuppressDeletedElements(cx, obj, finalLength, len))
return false;
} else {
/*
* This is all very slow if the length is very large. We don't yet