Bug 1660405 - Move away from mozilla::IsFinite in favor of std::isfinite. r=sergesanspaille

Differential Revision: https://phabricator.services.mozilla.com/D173036
This commit is contained in:
Andi-Bogdan Postelnicu
2023-03-22 09:27:57 +00:00
parent 5e0156c1e4
commit 2e64d79ba8
56 changed files with 136 additions and 141 deletions

View File

@@ -1859,7 +1859,7 @@ void HTMLInputElement::SetValueAsNumber(double aValueAsNumber,
ErrorResult& aRv) {
// TODO: return TypeError when HTMLInputElement is converted to WebIDL, see
// bug 825197.
if (IsInfinite(aValueAsNumber)) {
if (std::isinf(aValueAsNumber)) {
aRv.Throw(NS_ERROR_INVALID_ARG);
return;
}