relative / synchrony

javascript-obfuscator cleaner & deobfuscator
https://deobfuscate.relative.im/
GNU General Public License v3.0
840 stars 108 forks source link

unobfuscated division gets simplified #61

Closed e9x closed 1 year ago

e9x commented 1 year ago

When using the simplify transformer, code that does division is simplified.

Example: Math.round(1000 / 30)

Deobfuscated: Math.round(33.33333333)

The precision of the number may be a little longer, however it doesn't round up when being calculated.

The intended behavior is for Math.round(33.333333333333336) or Math.round(1000 / 30). Preferably the ladder.