mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
refactoring
This commit is contained in:
@@ -77,7 +77,7 @@ export class MemberExpressionObfuscator extends NodeObfuscator {
|
||||
private obfuscateLiteralProperty (node: ILiteralNode): void {
|
||||
if (typeof node.value === 'string' && !node['x-verbatim-property']) {
|
||||
node['x-verbatim-property'] = {
|
||||
content : this.replaceLiteralValueWithUnicodeValue(node.value),
|
||||
content : this.replaceLiteralValueWithUnicodeValue(<string>node.value),
|
||||
precedence: escodegen.Precedence.Primary
|
||||
};
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ export class ObjectExpressionObfuscator extends NodeObfuscator {
|
||||
private obfuscateLiteralPropertyKey (node: ILiteralNode): void {
|
||||
if (typeof node.value === 'string' && !node['x-verbatim-property']) {
|
||||
node['x-verbatim-property'] = {
|
||||
content : Utils.stringToUnicode(node.value),
|
||||
content : Utils.stringToUnicode(<string>node.value),
|
||||
precedence: escodegen.Precedence.Primary
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user