mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -86,7 +86,7 @@ JS_DEFINE_NATIVE_FUNCTION(NumberConstructor::is_finite)
|
|||
// 21.1.2.3 Number.isInteger ( number ), https://tc39.es/ecma262/#sec-number.isinteger
|
||||
JS_DEFINE_NATIVE_FUNCTION(NumberConstructor::is_integer)
|
||||
{
|
||||
return Value(vm.argument(0).is_integer());
|
||||
return Value(vm.argument(0).is_integral_number());
|
||||
}
|
||||
|
||||
// 21.1.2.4 Number.isNaN ( number ), https://tc39.es/ecma262/#sec-number.isnan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue