Improved update of previous mangled character

This commit is contained in:
sanex
2020-09-12 10:15:13 +03:00
parent 9b5eba5363
commit 5a833d1057
9 changed files with 345 additions and 56 deletions
+19 -9
View File
@@ -13,23 +13,33 @@ import { IdentifierNamesGenerator } from '../../src/enums/generators/identifier-
function test (a, b) {
const bar = 'bbb';
return a + b;
}
function test1 (a, b) {
const bar = 'bbb';
function test1 (a, b) {
const baz = 'ccc';
function test2 (a, b) {
const bark = 'ddd';
return bark;
}
return baz + test2();
}
return a + b;
return bar + test1();
}
test();
function test3 (a, b) {
const hawk = 'eee';
return hawk;
}
var baz = 5;
foo + test() + test3();
`,
{
...NO_ADDITIONAL_NODES_PRESET,
compact: false,
identifierNamesGenerator: IdentifierNamesGenerator.MangledIdentifierNamesGenerator,
identifierNamesGenerator: IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,
renameGlobals: true,
stringArray: true,
stringArrayThreshold: 1,