mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
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:
parent
07992c8da6
commit
9127d83927
Notes:
sideshowbarker
2024-07-18 12:11:28 +09:00
Author: https://github.com/IdanHo
Commit: 9127d83927
Pull-request: https://github.com/SerenityOS/serenity/pull/8085
8 changed files with 12 additions and 12 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue