Closed mai1x9 closed 9 months ago
How can we reproduce this issue?
@josdejong thanks for response. I could figure out the issue is not due to workerpool. It is due to webpack. After thorough references to: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/195 and https://github.com/javascript-obfuscator/javascript-obfuscator/issues/207 I could see that the issue is due to webpack.
When the function is passed as argument, it is resulting in reference error. (I am not sure why obfuscation is throwing the error). However as a work around, I have just excluded couple of lines where worker-pool is used preventing from obfuscating the code and it is working now.
I think the issue is due to some scope or dead-code injection etc..
Good to hear you found the cause. Closing this issue now.
I am getting below error afgter building the node application with webpack.
Since i am using webpack, the js code is obfuscated, all I know is error at line 98. However if run as direct node application without building using webpack it is working.
I am not sure what is the reason behind it, but probably eslint might help to figure out reference errors and fix them.
Any help or suggestion regarding this.