Expected Behavior
The CLI command and online obfuscator should work well with 'static' keyword in code.
Current Behavior
ES6 has the new 'static' keyword for static properties of class. Command javascript-obfuscator fails with error:
Error: RangeError: Maximum call stack size exceeded
Steps to Reproduce
- Create a .js file with an ES6 class inside
- Add a static property with 'static' keyword
- Run the obfuscator on the file
- Error is shown "Error: RangeError: Maximum call stack size exceeded"
Your Environment
WSL
Stack trace
No
Minimal working example that will help to reproduce issue
class MyClass {
// Static properties
static myProp = {
name: "foobar"
};
}
Expected Behavior
The CLI command and online obfuscator should work well with 'static' keyword in code.
Current Behavior
ES6 has the new 'static' keyword for static properties of class. Command
javascript-obfuscatorfails with error:Error: RangeError: Maximum call stack size exceededSteps to Reproduce
Your Environment
WSL
Stack trace
No
Minimal working example that will help to reproduce issue