The script below, which is defined in a web-site, causes infinite
loop.. Firefox indicates that there is "too much recursion" and stops
execution of the script ( using firebug extension we could see this
message)
Question: How to defend against the infinite loop when using Rhino?
<script>
var RealWinOpen = null;
function SymOnLoad()
{
if(RealWinOpen != null)
{
RealWinOpen();
}
}
RealWinOpen = SymOnLoad;
RealWinOpen();
</script>
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino