mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 563303 useless check of !data.index in nsContentUtils::ReparentClonedObjectToScope
r=bent
This commit is contained in:
parent
6d30a73e66
commit
1d241c39dc
@ -5698,7 +5698,9 @@ nsContentUtils::ReparentClonedObjectToScope(JSContext* cx,
|
||||
while (!objectData.IsEmpty()) {
|
||||
ReparentObjectData& data = objectData[objectData.Length() - 1];
|
||||
|
||||
if (!data.ids && !data.index) {
|
||||
if (!data.ids) {
|
||||
NS_ASSERTION(!data.index, "Shouldn't have index here");
|
||||
|
||||
// Typed arrays are special and don't need to be enumerated.
|
||||
if (js_IsTypedArray(data.obj)) {
|
||||
if (!js_ReparentTypedArrayToScope(cx, data.obj, scope)) {
|
||||
|
Loading…
Reference in New Issue
Block a user