recently seen in some JS code
what the HELL
@danielhglus i<Infinity? why not just for(var i=0;;i++)?
@ben yup exactly
@danielhglus I like how 1/0 is well-defined in JS
@ben hmm, on further reading it looks like the idea is to infinite-loop the browser?
gotta say, this is some weird stuff
seems like a denial of service exploit
also if there are no braces in that it'll never get to the window.history command
@ben look closer - commas, lol
what a bizarrely written snippet
and it's actually in some code to handle user input
@danielhglus seems like it'd just spam the browser history forever
@ben oh you're right
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!