Skip to content

Conversation

CyrusNajmabadi
Copy link
Contributor

Spreading emits as ".push.apply(reciver, values)". This pushes every element in
values onto the stack before calling the function. This can easily stack overflow
if the amount of values is high (i hit this with ~10k values on my own system).

Spreading emits as ".push.apply(reciver, values)".  This pushes every elements in
values onto the stack before calling the function.  This can easily stack overflow
if the amount of values is high (i hit this with ~10k values on my own system).
@RyanCavanaugh
Copy link
Member

👍

CyrusNajmabadi added a commit that referenced this pull request Jun 18, 2015
Don't use spread operator when pushing arrays onto other arrays.
@CyrusNajmabadi CyrusNajmabadi merged commit 2905f41 into master Jun 18, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the spreadStackOverflow branch June 18, 2015 16:29
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants