r/javascript • • Oct 16 '26

Running your code through prettier can change what it does.

https://trustsig.eu/blog/javascript-divergence/
3 Upvotes

6 comments sorted by

View all comments

-24

u/dustofdeath Oct 17 '26

Prettier is obsolete, any decent IDE, with llm can handle formatting just fine.

14

u/BlazingFire007 Oct 17 '26

Why would you use an LLM to format code?? Or am I misunderstanding

2

u/trustsigRobert Oct 17 '26

He probably meant for reverse engineering, but even in that case LLMs opt to use a formatter to analyze large JavaScripts (when it doesn't fit into context for example). When LLMs write custom deobfuscators they will (basically) never write a custom AST->JS printer and opt to use any existing one (e.g AString) many of which the same techniques I've posted work for.