• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Can JS Function .apply cause a stack overflow

Hi,
 My brother is a JS Node coder and was looking for articles on how the function .apply can cause stack overflow.

any help is appreciated.
Thanks
0
wblake4
Asked:
wblake4
1 Solution
 
käµfm³d 👽Commented:
Any function in pretty much any (applicable) programming language can cause a stack overflow. A stack overflow means you exceeded the bounds of the memory allocated to your process. Too many variable declarations, unchecked recursive function calls, and too-nested of non-recursive function calls could all cause an SO.
0
 
CEHJCommented:
Posting JavaScript questions in the Java TA is not appropriate, and might make your question less likely to be answered. http://technojeeves.com/joomla/index.php/free/127-javascript-is-not-java
0
 
wblake4Author Commented:
I should have known,  thanks.

The other solution posted was helpful aslo but I clicked too fast on accepted answer and I can't find my way back.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now