I was exploring the Google Closure Compiler, and one thing I noticed was that it converts while(true) into for(;;).
Both do hang the browse
There is evaluation algorothm of for loop in Standard ECMA-262 script that says there are only two situations in which loop will end: