mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Implement Number.isFinite()
Like the global isFinite() without the number coercion.
This commit is contained in:
parent
b094c064d8
commit
c350f5ae67
Notes:
sideshowbarker
2024-07-19 07:16:24 +09:00
Author: https://github.com/linusg
Commit: c350f5ae67
Pull-request: https://github.com/SerenityOS/serenity/pull/1973
6 changed files with 40 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue