FunctionExecutor.replaceFunctionCalls() tries to replace the call by a literal value and fails (since we have a table of literals), so nothing gets replaced in the foo assigment (and cannot be simplified further).
The output is also not sound since the function is removed and the code can no longer be executed. Output is:
const foo = _0x1661()[0];
I don't know much about javascript, so there might be good reasons for not handling this. What you think?
The following snippet does not simplify
FunctionExecutor.replaceFunctionCalls() tries to replace the call by a literal value and fails (since we have a table of literals), so nothing gets replaced in the foo assigment (and cannot be simplified further).
The output is also not sound since the function is removed and the code can no longer be executed. Output is:
I don't know much about javascript, so there might be good reasons for not handling this. What you think?