mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-07 08:33:50 +08:00
Math.max and Math.min with a spread and other arguments (`Math.max(...xs, 5)`) pack their arguments, in order and with each spread flattened, into one number[] that the runtime folds, as Math.hypot already does. The fold keeps NaN poisoning, -0 below +0 and the empty fold's infinities, and the arguments evaluate left to right before it. The refusal hint now names the supported forms. Fixes #1621 Co-authored-by: ejc3 <1694850+ejc3@users.noreply.github.com>