javascript-obfuscator
Version:
JavaScript obfuscator
24 lines (20 loc) • 573 B
text/typescript
/**
* @returns {string}
*/
export function DebugProtectionFunctionTemplate (): string {
return `
function {debugProtectionFunctionName} (ret) {
function debuggerProtection (counter) {
{debuggerTemplate}
debuggerProtection(++counter);
}
try {
if (ret) {
return debuggerProtection;
} else {
debuggerProtection(0);
}
} catch (y) {}
}
`;
}