DebuggerTemplate.ts 572 B

1234567891011121314151617
  1. /**
  2. * @returns {string}
  3. */
  4. export function DebuggerTemplate (): string {
  5. return `
  6. if (typeof counter === 'string') {
  7. return (function (arg) {}.constructor('while (true) {}').apply('counter'));
  8. } else {
  9. if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {
  10. (function () {return true;}.constructor('debu' + 'gger').call('action'));
  11. } else {
  12. (function () {return false;}.constructor('debu' + 'gger').apply('stateObject'));
  13. }
  14. }
  15. `;
  16. }