diff --git a/js/src/ion/IonBuilder.cpp b/js/src/ion/IonBuilder.cpp index f9a7d8a1389f..51900326a818 100644 --- a/js/src/ion/IonBuilder.cpp +++ b/js/src/ion/IonBuilder.cpp @@ -3031,9 +3031,7 @@ IonBuilder::addTypeBarrier(uint32_t i, CallInfo &callinfo, types::StackTypeSet * } while (excluded) { - if (excluded->target == calleeObs) { - JS_ASSERT(callerObs->hasType(excluded->type)); - + if (excluded->target == calleeObs && callerObs->hasType(excluded->type)) { if (excluded->type == types::Type::DoubleType() && calleeObs->hasType(types::Type::Int32Type())) { // The double type also implies int32, so this implies that