3 ms·
What happens when you visit a malicious website and your computer gets stuck on `while(1)`? Syntax error would be better?
by frozenport 13y ago
What happens when you visit a malicious website and your computer gets stuck on `while(1)`? Syntax error would be better?
- mbetter 13y agoYou have to throw out your computer and buy a new one.
- matchu 13y agoBecause the script is useless, malicious websites won't bother including it, so the folks at Google don't really care what it actually does. Or, if the site wants to be malicious by just giving you a while(1), they can do that without Google's help.
- Jare 13y agoI recall IE showed a dialog on javascript errors to ask if the user wanted to continue. An infinite loop will get the entire script aborted because there's no obvious way to continue.