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
Родитель 10fdf6d3da
Коммит 5088fa1eb6
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -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