DebuggerTemplateNoEval.ts 481 B

123456789101112131415161718192021
  1. /**
  2. * @returns {string}
  3. */
  4. export function DebuggerTemplateNoEval (): string {
  5. return `
  6. if (typeof counter === 'string') {
  7. const func = function () {
  8. while (true) {}
  9. };
  10. return func();
  11. } else {
  12. if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {
  13. debugger;
  14. } else {
  15. debugger;
  16. }
  17. }
  18. `;
  19. }