You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Judging by the docs and source code --split-strings true should be the default when using --options-preset high-obfuscation but it does not seem to work.
It is expected that the high-obfuscation preset includes split-string by default. Source code seems to indicate exactly that but the tests disprove it.
Current Behavior
Running the two commands below yield significantly different file sizes (especially on a large file).
Expected Behavior
Judging by the docs and source code
--split-strings true
should be the default when using--options-preset high-obfuscation
but it does not seem to work.It is expected that the
high-obfuscation
preset includessplit-string
by default. Source code seems to indicate exactly that but the tests disprove it.Current Behavior
Running the two commands below yield significantly different file sizes (especially on a large file).
./javascript-obfuscator --options-preset high-obfuscation file.js
./javascript-obfuscator --options-preset high-obfuscation --split-strings true file.js
Looking at the generated code here are the related bits, respectively.
'This\x20is\x20a\x20long\x20string\x20and\x20it\x20should\x20really\x20be\x20split\x20by\x20the\x20obfuscator!'
const _0x483d67 = a0_0x56a5, _0x3e020d = (_0x483d67(0x93) + 'long\x20strin' + 'g\x20and\x20it\x20s' + 'hould\x20real' + _0x483d67(0x8a) + _0x483d67(0x94) + 'bfuscator!')[_0x483d67(0x91)][_0x483d67(0x8b)](_0x3e020d);
Steps to Reproduce
file.js
with a large enough string (sample file attached)Your Environment
file.zip
The text was updated successfully, but these errors were encountered: