javascript-obfuscator / gulp-javascript-obfuscator

Gulp plugin for javascript-obfuscator package.
99 stars 38 forks source link

"gulp-javascript-obfuscator causes syntax errors" #23

Closed max-edelstein closed 4 years ago

max-edelstein commented 4 years ago

Hello,

It appears that whenever one attempts to obfuscate code with "gulp-javascript-obfuscator" certain characters are inserted in the javascript file like "}", "=", etc. These characters cause syntax errors in javascript and result in broken code. I am leaving this here in the event others run into a similar issue.

Best,

Max

zamotkin commented 4 years ago

@max-edelstein sorry, could you share an example of such code? I can't see your point.

max-edelstein commented 4 years ago

@zamotkin , I will attempt to share an example as soon as possible. My apologies for this.

max-edelstein commented 4 years ago

Just an update, tomorrow I plan to see if I can find the code triggering this issue.

max-edelstein commented 4 years ago

Issue was my fault. I was calling a task that executed gulp-uglify-es and gulp-javascript-obfuscator twice. My apologies for this.