I have a script that analyzes javascript in links, recursively, so if it finds a javascript, then it analyzes the javascript, and if the javascript it’s analyzing contains more javascript then it keeps going, so on so forth. However, I’ve encountered issues where this recursion would never stop, is there a way to add a timeout for this recursion?
Share
I tend to agree with kindall. If, however, you did want to limit the depth of recursion, you could do something like this: