IfStatementSimplifyTransformer prototype WIP

This commit is contained in:
sanex3339
2020-06-28 12:15:47 +03:00
parent a217ac7bf6
commit 770d52ccac
9 changed files with 31210 additions and 12 deletions
@@ -257,10 +257,14 @@ describe('JavaScriptObfuscator runtime eval', function () {
}
).getObfuscatedCode();
evaluationResult = eval(`
${getEnvironmentCode()}
${obfuscatedCode}
`);
try {
evaluationResult = eval(`
${getEnvironmentCode()}
${obfuscatedCode}
`);
} catch (e) {
throw new Error(`Evaluation error: ${e.message}. Code: ${obfuscatedCode}`);
}
});
it('should obfuscate code without any runtime errors after obfuscation: Variant #4 webpack bootstrap', () => {