diff --git a/js/src/jit/MCallOptimize.cpp b/js/src/jit/MCallOptimize.cpp index 6352ec89941..92121b2aa2f 100644 --- a/js/src/jit/MCallOptimize.cpp +++ b/js/src/jit/MCallOptimize.cpp @@ -775,9 +775,9 @@ IonBuilder::inlineMathPow(CallInfo &callInfo) if (outputType != MIRType_Int32 && outputType != MIRType_Double) return InliningStatus_NotInlined; - if (baseType != MIRType_Int32 && baseType != MIRType_Double) + if (!IsNumberType(baseType)) return InliningStatus_NotInlined; - if (powerType != MIRType_Int32 && powerType != MIRType_Double) + if (!IsNumberType(powerType)) return InliningStatus_NotInlined; callInfo.setImplicitlyUsedUnchecked();