How can I test potentially “browser-crashing” JavaScript?
问题 I've been having a crack at some of the problems over at http://projecteuler.net/ with JavaScript. I've been using a simple html page and running my code in script tags so I can log my results in the browsers' console. When experimenting with loops I sometimes cause the browser to crash. Is there a better environment for me to do this kind of development? 回答1: a browser that has separate processes for each tab debugger breakpoints an if that breaks the loop if some threshold for time is hit