mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
When the Math functions evaluate their arguments into temporaries before converting (an earlier argument whose ToNumber can run valueOf), a spread argument's array is now copied where it is evaluated. Before, the temporary held the array itself and its elements were read after the conversions, so a valueOf that changed the array changed the values passed, while JavaScript reads a spread's elements during argument evaluation.