mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Added more restrictions for object keys transformations
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/516
This commit is contained in:
+4
-5
@@ -7,11 +7,10 @@ import { NO_ADDITIONAL_NODES_PRESET } from '../../src/options/presets/NoCustomNo
|
||||
|
||||
let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(
|
||||
`
|
||||
const foo = \`\${{
|
||||
foo: 'bar',
|
||||
baz: 'bark'
|
||||
}.baz}\`;
|
||||
console.log(foo);
|
||||
var passthrough = (object) => object;
|
||||
var foo = {foo: 1},\t
|
||||
bar = passthrough({bar: foo.foo});
|
||||
console.log(bar.bar);
|
||||
`,
|
||||
{
|
||||
...NO_ADDITIONAL_NODES_PRESET,
|
||||
|
||||
Reference in New Issue
Block a user