Javascript-obfuscator: How to disable Parenthesis removal?

Created on 30 Aug 2018  路  3Comments  路  Source: javascript-obfuscator/javascript-obfuscator

The obfuscator seems to remove all parenthesis it doesn't think are necessary, which has lead to several errors in my resulting code. Is there an option or workaround to disable this?

For instance

if((conditionA && conditionB) || (conditionC && conditionD))

gets converted to

if(conditionA && conditionB || conditionC && conditionD)

and other instances which is breaking my code. (in an Adobe Extendscript environment)

Thanks!

Current Specs:

javascript-obfuscator - 1.1.4
Gulp - 3.9.1
Node - 6.4.0

3rd party library bug wontfix

All 3 comments

Hi, i'll look into this issue but currently i take a 1-2 months timeout with this project to doing renovations on my flat. So, until october i'll have no time to look into this.

If i'll have time - i'll fix it.

Hi. This is escodegen problem. Not sure how to fix this.

Not sure how to fix it even on escodegen side. Closed as wontfix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pawelzwronek picture pawelzwronek  路  7Comments

saostad picture saostad  路  5Comments

sanex3339 picture sanex3339  路  5Comments

elderapo picture elderapo  路  3Comments

BlackYuzia picture BlackYuzia  路  6Comments