What is the maximum recursion depth in Google Apps Scripts? I have a match_recurse function that looks like the following pseudocode:
function match_recurse(array) { for (i=0, i<3, i++) { var arr2 = array.copy().push(i); if (is_done(arr2)) break; match_recurse(arr2); } }
(He also returns his results, but I don't want to fan the question.)
Now, since the runtime error, the execution script and the logs were not saved, so I donβt know if my is_done function is is_done . I can do a few cases of the problem on paper and check the depth of the recursion, but I don't know what the maximum should be.
I saw an article on the Internet that mentions that IE has a maximum call stack of 13 if you go through a Window object, but nothing else.
source share