Added mangleProperties to the runtime tests. Readme update

This commit is contained in:
sanex3339
2020-06-07 00:36:30 +03:00
parent 095ccc330a
commit 5cd063fe92
4 changed files with 16 additions and 7 deletions
@@ -25,6 +25,7 @@ describe('JavaScriptObfuscator runtime eval', function () {
debugProtection: true,
disableConsoleOutput: true,
domainLock: ['obfuscator.io'],
mangleProperties: true,
reservedNames: ['generate', 'sha256'],
rotateStringArray: true,
selfDefending: true,
@@ -67,7 +68,8 @@ describe('JavaScriptObfuscator runtime eval', function () {
code,
{
...baseOptions,
...options
...options,
mangleProperties: false
}
).getObfuscatedCode();
@@ -178,7 +180,8 @@ describe('JavaScriptObfuscator runtime eval', function () {
code,
{
...baseOptions,
...options
...options,
mangleProperties: false
}
).getObfuscatedCode();
@@ -248,7 +251,8 @@ describe('JavaScriptObfuscator runtime eval', function () {
{
...baseOptions,
...options,
...webpackBootstrapOptions
...webpackBootstrapOptions,
reservedNames: ['^foo$']
}
).getObfuscatedCode();