mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Check for infinite value in txFormatNumberFunctionCall.
This commit is contained in:
parent
685ae236c8
commit
b2cb4042f0
1 changed files with 6 additions and 0 deletions
|
|
@ -265,6 +265,12 @@ txFormatNumberFunctionCall::evaluate(txIEvalContext* aContext,
|
||||||
|
|
||||||
value = fabs(value) * multiplier;
|
value = fabs(value) * multiplier;
|
||||||
|
|
||||||
|
// Make sure the multiplier didn't push value to infinity.
|
||||||
|
if (value == mozilla::PositiveInfinity<double>()) {
|
||||||
|
return aContext->recycler()->getStringResult(format->mInfinity,
|
||||||
|
aResult);
|
||||||
|
}
|
||||||
|
|
||||||
// Prefix
|
// Prefix
|
||||||
nsAutoString res(prefix);
|
nsAutoString res(prefix);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue