unicode javascript blend mix is so much fun

here's some neat looking invalid javascript

it won't do anything when you run it, it's so obviously invalid, right

sprunge.us/QeYK

Follow

This program has multiple syntax faults, and even if it didn't, it's not calling anything.
ghostbin.com/paste/gu9tu

(Hint: The emoticons at the bottom are red herrings.)

@boots i really like how a certain subset of the code makes the alert appear not once, but over and over again

@typhlosion the best part is if you're in chrome try typing "Object." into the dev console

@boots okay i think i figured this one out - i really like the disguised arrow function, that was a good touch

@typhlosion yeah, basically the browser casts SyntaxError to a string when it gets ~ called on it (bitwise-not) and since the function.prototype assignment ran first due to parenthesis, it runs the alert

the "Object." thing is just chrome weirdness though
iirc you can use it to make a dev tools beartrap which is fun

@boots i was able to get the payload to run with just 0/(the function prototype assignment), which is what ended up finally cinching it for me

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!