mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 770235 - Fix mistaken patch (r=dvander)
This commit is contained in:
parent
f6d146c74e
commit
dee3c8e4eb
@ -4918,10 +4918,13 @@ IonBuilder::TestCommonPropFunc(JSContext *cx, types::TypeSet *types, HandleId id
|
||||
shape->setterObject();
|
||||
|
||||
// Save the first seen, or verify uniqueness.
|
||||
if (!found)
|
||||
if (!found) {
|
||||
if (!curFound->isFunction())
|
||||
return true;
|
||||
found = curFound;
|
||||
else if (found != curFound)
|
||||
} else if (found != curFound) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// We only support cases with a single prototype shared. This is
|
||||
// overwhelmingly more likely than having multiple different prototype
|
||||
@ -4933,7 +4936,7 @@ IonBuilder::TestCommonPropFunc(JSContext *cx, types::TypeSet *types, HandleId id
|
||||
}
|
||||
|
||||
// No need to add a freeze if we didn't find anything
|
||||
if (!found || !found->isFunction())
|
||||
if (!found)
|
||||
return true;
|
||||
|
||||
JS_ASSERT(foundProto);
|
||||
@ -4971,6 +4974,8 @@ IonBuilder::TestCommonPropFunc(JSContext *cx, types::TypeSet *types, HandleId id
|
||||
}
|
||||
}
|
||||
|
||||
*funcp = found->toFunction();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user