1234567891011121314151617181920212223 |
- /**
- * @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) {}
- }
- `;
- }
|