-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: autofix error "Maximum call stack size exceeded" in array push spread #78
Comments
It definitely can, every problem has a solution, but not every solution relates to a problem :). Could you please provide me a Using About Anyways example you show very important and people should know about it and use according to Pareto principle, to 20% of their code they sure that will have so much data. |
but its the shortest solution, "written in a way developers does" ideally a future version of node would implement something like [].pushArray(Array.from({ length: 1000*1000 })) also, this rule would be default off, and only would be used to transform code which has this problem or move to eslint? |
I think would be great if you write about it to https://es.discourse.group/ and |
working prototype at basically, ive reinvented putout and eslint ; ) |
calling
someArray.push(...otherArray)
can be considered a code smell,since
otherArray.length
is limited to about 100K in nodejs (500K in firefox)see sveltejs/svelte#4694 (comment)
The text was updated successfully, but these errors were encountered: