1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibJS: Implement Number.isFinite()

Like the global isFinite() without the number coercion.
This commit is contained in:
Linus Groh 2020-04-26 18:24:58 +01:00 committed by Andreas Kling
parent b094c064d8
commit c350f5ae67
6 changed files with 40 additions and 2 deletions

View file

@ -4,6 +4,7 @@ try {
assert(isFinite.length === 1);
assert(isFinite(0) === true);
assert(isFinite(1.23) === true);
assert(isFinite(42) === true);
assert(isFinite("") === true);
assert(isFinite("0") === true);