mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Added optimisations to numbersToExpressions option. Updated tests
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ import { NO_ADDITIONAL_NODES_PRESET } from '../../src/options/presets/NoCustomNo
|
||||
|
||||
let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(
|
||||
`
|
||||
const foo = 100;
|
||||
const foo = 0;
|
||||
|
||||
console.log(foo);
|
||||
`,
|
||||
|
||||
@@ -810,6 +810,7 @@ describe('JavaScriptObfuscator', () => {
|
||||
deadCodeInjection: true,
|
||||
deadCodeInjectionThreshold: 1,
|
||||
disableConsoleOutput: false,
|
||||
numbersToExpressions: true,
|
||||
simplify: true,
|
||||
renameProperties: true,
|
||||
rotateStringArray: true,
|
||||
|
||||
@@ -25,6 +25,7 @@ describe('JavaScriptObfuscator runtime eval', function () {
|
||||
debugProtection: true,
|
||||
disableConsoleOutput: true,
|
||||
domainLock: ['obfuscator.io'],
|
||||
numbersToExpressions: true,
|
||||
simplify: true,
|
||||
renameProperties: true,
|
||||
reservedNames: ['generate', 'sha256'],
|
||||
|
||||
Reference in New Issue
Block a user