News for hackers. Stuff that matters.
Re:Reverse Engineering TikTok's VM Obfuscation (Part 1) by kerneloops on Saturday December 24, 2022 @07:31AM (#34116231)
Another reason to use `void 0` is that "void 0" takes only 6 characters while "undefined" takes 9, saving some bandwidth. It is common practice for JavaScript minifiers to use this substitution.
Re:Reverse Engineering TikTok's VM Obfuscation (Part 1) by marginalia_nu on Saturday December 24, 2022 @07:51AM (#34116352)
Given it will be gzip-compressed in transport, does this really save a meaningful amount of bandwidth?
Re:Reverse Engineering TikTok's VM Obfuscation (Part 1) by draw_down on Saturday December 24, 2022 @10:23AM (#34117636)
It’s really more that there is no reason not to do it. Void is marginally safer as well as shorter, so any minifier/transpile step etc will make this substitution.