UNPKG

javascript-obfuscator

Version:
24 lines (20 loc) 573 B
/** * @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) {} } `; }