UNPKG

vanzy-protect

Version:

Epic Obfuscator Yeahhh

16 lines (15 loc) 677 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.newExpression = void 0; const comment_1 = require("../obfuscate/comment"); const rightExpression_1 = require("./rightExpression"); function newExpression(expr) { var data = 'new ' + (0, comment_1.comment)(2); data += '(' + (0, comment_1.comment)(3) + (0, rightExpression_1.rightExpression)(expr.callee) + (0, comment_1.comment)(3) + ')' + (0, comment_1.comment)(2) + '('; expr.arguments.forEach((i) => { data += (0, rightExpression_1.rightExpression)(i) + (0, comment_1.comment)(3) + ','; }); data += ')'; return data; } exports.newExpression = newExpression;