You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spread elements in array literals and call arguments are iterated after later elements are evaluated #5316
Spread elements in array literals and function call argument lists are not iterated until after subsequent elements or arguments in the list have been evaluated. As a result, side effects in later expressions mutate the iterable before the spread runs.
Per ECMA-262 ArrayAccumulation and ArgumentListEvaluation, a SpreadElement must be evaluated and iterated to completion before evaluating the next element or argument in the list.
Activity