mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fixed order of the appended string array scope wrappers
This commit is contained in:
+10
-2
@@ -8,7 +8,15 @@ import { IdentifierNamesGenerator } from '../../src/enums/generators/identifier-
|
||||
|
||||
let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(
|
||||
`
|
||||
[].map(v => 'vvv');
|
||||
const foo = 'foo'
|
||||
const bar = 'bar';
|
||||
const baz = 'baz';
|
||||
|
||||
function test () {
|
||||
const bark = 'bark'
|
||||
const hawk = 'hawk';
|
||||
const eagle = 'eagle';
|
||||
}
|
||||
`,
|
||||
{
|
||||
...NO_ADDITIONAL_NODES_PRESET,
|
||||
@@ -19,7 +27,7 @@ import { IdentifierNamesGenerator } from '../../src/enums/generators/identifier-
|
||||
transformObjectKeys: true,
|
||||
stringArrayThreshold: 1,
|
||||
stringArrayWrappersChainedCalls: false,
|
||||
stringArrayWrappersCount: 1
|
||||
stringArrayWrappersCount: 2
|
||||
}
|
||||
).getObfuscatedCode();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user