Firefox 5 - infinite loop handling

During recent development I've discovered infinite loop in application I'm working on. First error I got was while using FF4, and later I've done same test in IE8 and FF3.6. Now, even that I've noticed that IE8 is throwing exception (error popup with stop script button) much faster than FF4, the error was always thrown by both browsers for that error.

After upgrading FF4 to FF5 I noticed something that could be quite a problem for developers.
FF5 is stopping/breaking infinite loop, and continue to work without noticing the user.
I'm not sure if I bump on some weird behavior, and I'd like someone to confirm (before I drop FF5 from my dev tools).

-------------Problems Reply------------

I've just tried it directly in the bar and got the below warning.

Firefox 5 - infinite loop handling

I ran the following script:


var i = 0, j = 0;
while(i < 1) {


in Firefox 5 and got a confirm dialog notifying me of a potential infinite loop, and asking whether or not I wanted to stop the script.

Category:javascript Views:1 Time:2011-07-06

Related post

Copyright (C), All Rights Reserved.

processed in 0.101 (s). 11 q(s)