mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
First draw of control flow change. Right now for binary expressions.
This commit is contained in:
+7
-5
@@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
import { NO_CUSTOM_NODES_PRESET } from '../../src/preset-options/NoCustomNodesPreset';
|
||||
|
||||
if (!(<any>global)._babelPolyfill) {
|
||||
require('babel-polyfill');
|
||||
@@ -66,13 +67,14 @@ if (!(<any>global)._babelPolyfill) {
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
var left = 5;
|
||||
console.log(left + 15);
|
||||
})();
|
||||
`,
|
||||
{
|
||||
disableConsoleOutput: false,
|
||||
selfDefending: true,
|
||||
stringArrayEncoding: 'rc4'
|
||||
}
|
||||
Object.assign({}, NO_CUSTOM_NODES_PRESET, {
|
||||
controlFlow: true
|
||||
})
|
||||
).getObfuscatedCode();
|
||||
|
||||
console.log(obfuscatedCode);
|
||||
|
||||
Reference in New Issue
Block a user