I’m looking for i18n module and found this strange code:
/ui/root/js/helper.js
40. var maxRecursion = 4;
…
45. replacementCounter++;
46. if (replacementCounter > replacementCounter) {
47. break;
48. } // safety net for too much recursion
hope it will be helpful.