| ▲ | hyperhello 3 hours ago | |||||||||||||||||||||||||
The code is just an infinite loop counter. You can cause all kinds of Safari issues with an infinite loop in JavaScript too, which is sure annoying when trying to figure out large codebases. There was a student in Japan who showed that you could do this trivially and they were arrested. | ||||||||||||||||||||||||||
| ▲ | StilesCrisis 3 hours ago | parent | next [-] | |||||||||||||||||||||||||
Blowing up a browser tab with bad JavaScript is not considered to be a problem. But kernel panicking the computer is different--this brings us back to the bad old days of MacOS where a buggy program could force a freeze/restart at any time. | ||||||||||||||||||||||||||
| ▲ | SahAssar 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
Usually you can't freeze the whole system UI with an infinite counter though. I'm pretty sure normal JS browser processes are not supposed to be able to do that. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | mikestew 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
There's more to it than just a loop. If it was just a loop, it would peg a CPU core and be done with it. But you'll have to reread TFA to find out how it takes out the window server, thus freezing the rest of the system. | ||||||||||||||||||||||||||
| ▲ | hyperhello 3 hours ago | parent | prev [-] | |||||||||||||||||||||||||
Why does everyone hate this comment? Attitude? I can’t figure out the wavelength here. I’m just commenting. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||