Added method-definition literal key converting to computed

This commit is contained in:
sanex3339
2020-01-09 17:14:31 +03:00
parent dcc489a148
commit 612068024a
9 changed files with 184 additions and 62 deletions
+3 -2
View File
@@ -7,8 +7,9 @@ import { NO_ADDITIONAL_NODES_PRESET } from '../../src/options/presets/NoCustomNo
let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(
`
var foo = 'abcd'
var bar = 'abcde'
class Foo {
'bar'() {}
}
`,
{
...NO_ADDITIONAL_NODES_PRESET,