Better HN
top
new
best
ask
show
jobs
Log in
Sign up
I crashed my browser with 5 strings of JavaScript code | Better HN
I crashed my browser with 5 strings of JavaScript code
(github.com)
2 points · by
vsnits
· 3y ago · 1 comment
Comments
[–]
vsnits
OP
3y ago
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 }