First draw of control flow change. Right now for binary expressions.

This commit is contained in:
sanex3339
2016-11-20 22:22:06 +03:00
parent 22de896cc0
commit 3466eeb334
49 changed files with 2172 additions and 646 deletions
+7 -5
View File
@@ -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);