mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-05 07:40:58 +00:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
|
|
try {
|
||
|
|
assert(Math.max.length === 2);
|
||
|
|
assert(Math.max(1) === 1);
|
||
|
|
assert(Math.max(2, 1) === 2);
|
||
|
|
assert(Math.max(1, 2, 3) === 3);
|
||
|
|
assert(isNaN(Math.max(NaN)));
|
||
|
|
assert(isNaN(Math.max("String", 1)));
|
||
|
|
|
||
|
|
console.log("PASS");
|
||
|
|
} catch {
|
||
|
|
console.log("FAIL");
|
||
|
|
}
|