mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
6395ac8f05
commit
8f4ad94358
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user