12345678910111213141516171819202122 |
- /**
- * SelfDefendingTemplate. Enters code in infinity loop.
- *
- * @returns {string}
- */
- export function SelfDefendingTemplate (): string {
- return `
- const {selfDefendingFunctionName} = {callControllerFunctionName}(this, function () {
- const test = function () {
- const regExp = test
- .constructor('return /" + this + "/')()
- .constructor('^([^ ]+( +[^ ]+)+)+[^ ]}');
-
- return !regExp.test({selfDefendingFunctionName});
- };
-
- return test();
- });
-
- {selfDefendingFunctionName}();
- `;
- }
|