LibJS: Rename Value::{is_integer => is_integral_number}

The implementation matches the specification, so lets match the name
as well. :^)
This commit is contained in:
Idan Horowitz 2021-06-16 13:17:06 +03:00 committed by Linus Groh
commit 9127d83927
Notes: sideshowbarker 2024-07-18 12:11:28 +09:00
8 changed files with 12 additions and 12 deletions

View file

@ -73,7 +73,7 @@ public:
bool is_negative_infinity() const { return is_number() && __builtin_isinf_sign(as_double()) < 0; }
bool is_positive_zero() const { return is_number() && bit_cast<u64>(as_double()) == 0; }
bool is_negative_zero() const { return is_number() && bit_cast<u64>(as_double()) == NEGATIVE_ZERO_BITS; }
bool is_integer() const { return is_finite_number() && (i32)as_double() == as_double(); }
bool is_integral_number() const { return is_finite_number() && (i32)as_double() == as_double(); }
bool is_finite_number() const
{
if (!is_number())