Auto detection of prevailing kind of variables

This commit is contained in:
sanex3339
2020-01-09 01:30:34 +03:00
parent f355309628
commit 3a1cc4e4f5
87 changed files with 25021 additions and 225 deletions
+4 -7
View File
@@ -7,16 +7,13 @@ import { NO_ADDITIONAL_NODES_PRESET } from '../../src/options/presets/NoCustomNo
let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(
`
(function () {
var a = 'a', b = 'b';
({[a]: a, [b]: b} = {a: 1, b: 2});
console.log(a, b);
})();
var foo = 'abcd'
var bar = 'abcde'
`,
{
...NO_ADDITIONAL_NODES_PRESET,
transformObjectKeys: true
stringArray: true,
stringArrayThreshold: 1
}
).getObfuscatedCode();