mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:27:34 +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
8 changed files with 12 additions and 12 deletions
|
@ -31,7 +31,7 @@ public:
|
|||
return {};
|
||||
if (value.is_symbol())
|
||||
return &value.as_symbol();
|
||||
if (value.is_integer() && value.as_i32() >= 0)
|
||||
if (value.is_integral_number() && value.as_i32() >= 0)
|
||||
return value.as_i32();
|
||||
auto string = value.to_string(global_object);
|
||||
if (string.is_null())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue