mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
LibJS: Return -Infinity in Math.max() with no argument
This commit is contained in:
parent
8bfee015bc
commit
9e7dcaa106
Notes:
sideshowbarker
2024-07-19 07:52:48 +09:00
Author: https://github.com/linusg
Commit: 9e7dcaa106
Pull-request: https://github.com/SerenityOS/serenity/pull/1653
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
try {
|
||||
assert(Math.max.length === 2);
|
||||
assert(Math.max() === -Infinity);
|
||||
assert(Math.max(1) === 1);
|
||||
assert(Math.max(2, 1) === 2);
|
||||
assert(Math.max(1, 2, 3) === 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue