зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
10fdf6d3da
Коммит
5088fa1eb6
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче