UNPKG

vanzy-protect

Version:

Epic Obfuscator Yeahhh

17 lines (16 loc) 533 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.returnStatement = void 0; const comment_1 = require("../obfuscate/comment"); const rightExpression_1 = require("./rightExpression"); function returnStatement(expr, data = '') { data += 'return('; data += (0, comment_1.comment)(2); if (expr.argument) data += (0, rightExpression_1.rightExpression)(expr.argument); else data += 'void(0)'; data += ')'; return data; } exports.returnStatement = returnStatement;