mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
IfStatementSimplifyTransformer prototype WIP
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user