SelfDefendingNoEvalTemplate.ts 508 B

123456789101112131415161718
  1. /**
  2. * SelfDefendingTemplate. Enters code in infinity loop.
  3. *
  4. * @returns {string}
  5. */
  6. export function SelfDefendingNoEvalTemplate (): string {
  7. return `
  8. const {selfDefendingFunctionName} = {callControllerFunctionName}(this, function () {
  9. {globalVariableTemplate}
  10. return that
  11. .RegExp('([\\\\S]+([\\\\s]+[\\\\S]+)+)+[\\\\S]}')
  12. .test({selfDefendingFunctionName});
  13. });
  14. {selfDefendingFunctionName}();
  15. `;
  16. }