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