JS formatting / deobfuscation can silently rewrite the script you’re analyzing.
A formatter, minifier or deobfuscator can be made abused to change the entire logic. You can go try out all 186 techniques with this script: https://divergence.trustsig.eu/ Or try the Tetris-Snake demo here (Tetris runs normally, copy the formatted output from even just DevTools and it becomes Snake): https://divergence-game.trustsig.eu/ Blog/writeup post: trustsig.eu/blog/javascript-divergence/ submitted by /u/trustsigRobert [link] [comments]