UNPKG

vanzy-protect

Version:

Epic Obfuscator Yeahhh

21 lines (20 loc) 750 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.callExpression = void 0; const comment_1 = require("../obfuscate/comment"); const rightExpression_1 = require("./rightExpression"); function callExpression(expr) { var data = '('; data += (0, comment_1.comment)(3); data += (0, rightExpression_1.rightExpression)(expr.callee); data += ')' + (0, comment_1.comment)(2); if (expr.optional) data += '?.'; data += '('; expr.arguments.forEach((i) => { data += (0, comment_1.comment)(3) + (0, rightExpression_1.rightExpression)(i) + (0, comment_1.comment)(3) + ',' + (0, comment_1.comment)(3); }); data += ')'; return data; } exports.callExpression = callExpression;