error |02:44:50: [js_include:289] Uncaught exception at line 0, include file multiplay/skirmish/APIs/Test.js: RangeError: Maximum call stack size exceeded.
error |02:44:50: [js_include:289] Uncaught exception at line 564, include file multiplay/skirmish/APIs/Test.js: RangeError: Maximum call stack size exceeded.
...
info |02:44:50: [loadPlayerScript:428] Uncaught exception at line 564, file multiplay/skirmish/eggplant.js: RangeError: Maximum call stack size exceeded.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Yup, and I have a rough idea of what's causing it -- but how do I track it down, eg. to a specific function, etc?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Yup, it was indeed a recursive function. A routine that checked to see if a specific API was loaded, by checking to see if it was loaded, by checking to see if it was loaded... >universe implodes<
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Well, at least it's not as bad as the time that I made a getter/setter property that returned the function that I created it with. It recursively recreated itself, which wouldn't have been so bad if it weren't for the fact that the getter/setter was designed to allow multiple functions to be nested in an event handler, so when the event fired the called function not only recursively recreated itself within itself, it also added itself to the list of functions to be called the result being an infinite multi-dimensional array of infinite multi-dimensional arrays.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO