summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-06-16 13:17:06 +0300
committerLinus Groh <mail@linusgroh.de>2021-06-16 12:57:55 +0100
commit9127d8392761d81fc1a01309d62062d25a559386 (patch)
treee0b6713aff81c1508ea6ee2a65ef320b8814d05c /Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp
parent07992c8da68c29893864bc5160ebb14a8cb8c9f9 (diff)
downloadserenity-9127d8392761d81fc1a01309d62062d25a559386.zip
LibJS: Rename Value::{is_integer => is_integral_number}
The implementation matches the specification, so lets match the name as well. :^)
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp
index b475092a48..b60bf08ad2 100644
--- a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp
@@ -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 {};
}