Actually, I wasn't trying to test the javascript VM at all, just how the browser handled an infinite loop of alert dialogs. Since alert windows steal focus, an infinite loop of them will keep stealing focus. I wanted to know how Chrome would handle this.
I didn't think you were barking up the wrong tree. It's another suggestion. You might need some kind of "yield" statement if you want to see how another Javascript program will act with a background window spamming it with allocations.