Hacker News new | past | comments | ask | show | jobs | submit login
I crashed my browser with 5 strings of JavaScript code (github.com/vsnits)
2 points by vsnits 9 months ago | hide | past | favorite | 1 comment



var p = 0, f, fch while(p++ < 1e8) { // the process is not infinite f = (Math.floor(Math.random()*98)+1) // all variables are outside of the stack fch = fetch(`https://vsnits.github.io/rps/files/${f}`) // all files are empty }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: