With nullish coalescing, this is now valid JavaScript: ~~!![[]]||__``&&$$++<<((""??''))**00==ಠಠ--//\\
-
-
Replying to @hashseed @RReverser
You can validly wrap the whole thing in `{{}}` (double block scope). The single line comment is a little cheating because you could technically put anything after the `//` so why stop there :p
1 reply 0 retweets 8 likes -
Replying to @kuvos @RReverser
The beauty is that the code is not fully parsed, which allows \\, and not fully exeucted, which allows __.
1 reply 0 retweets 4 likes -
Replying to @hashseed @RReverser
I'm not sure what you mean? `__` would be valid, and ` __`` ` is a valid tagged template. Or did you mean something else?
1 reply 0 retweets 0 likes -
Replying to @kuvos @RReverser
Yes. But executed would result in ReferenceError, except that || short-circuits.
1 reply 0 retweets 0 likes -
Replying to @hashseed @RReverser
Oh, right! I didn't realize that was also a criteria :p Have not found a way to put double backslash legally without putting it in a comment (and not possible in regex without repeating the forward slash again.
1 reply 0 retweets 0 likes
Does '0///x\\\0' count? (valid string literal)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.