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

@ -46,7 +46,7 @@ Value BigIntConstructor::call()
if (vm().exception())
return {};
if (primitive.is_number()) {
if (!primitive.is_integer()) {
if (!primitive.is_integral_number()) {
vm().throw_exception<RangeError>(global_object(), ErrorType::BigIntIntArgument);
return {};
}