Bug 914478 - Fix checking for error in setElemTryCache. (r=jandem)

This commit is contained in:
Shu-yu Guo 2013-09-10 04:15:55 -07:00
parent 43a4276031
commit 5df1c0a5aa

View File

@ -7270,8 +7270,8 @@ IonBuilder::setElemTryCache(bool *emitted, MDefinition *object,
return true;
bool needsBarrier;
if (PropertyWriteNeedsTypeBarrier(cx, current, &object, NULL, &value, /* canModify = */ true,
&needsBarrier))
if (!PropertyWriteNeedsTypeBarrier(cx, current, &object, NULL, &value, /* canModify = */ true,
&needsBarrier))
{
return false;
}