Solved

Can JS Function .apply cause a stack overflow

Posted on 2014-03-13
3
211 Views
Last Modified: 2014-03-14
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
Comment
Question by:wblake4
3 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39928322
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
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 39928629
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
 

Author Closing Comment

by:wblake4
ID: 39929317
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now