mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 23:57:25 +00:00
The specification requires that we immediately return Infinity during the iteration over the arguments if positive or negative infinity is encountered, and return a NaN if it is encountered and no Infinity was found. The specification also requires all arguments to be coerced into numbers before the operation starts, or else a number conversion exception could be missed due to the Infinity/NaN early return.
18 KiB
18 KiB