function abc() {
var s = "Test";
s = ['<tpl>', s, '</tpl>'].join('');
var re = /<tpl>.*<\/tpl>/;
var m, id = 0;
while(m = s.match(re)){
s = s.replace(m[0], '{xtpl'+ id + '}');
++id;
}
};
This javascript is reduced to:
function abc(){for(var t,l="Test",p=/<tpl>.*<\/tpl>/,a=0;t=(l=["<tpl>",l,"</tpl>"].join("")).match(p);)l=l.replace(t[0],"{xtpl"+a+"}"),++a}
This results in an endlos loop because variable "l" because it is used in the for condition
I got this Javascript:
This javascript is reduced to:
This results in an endlos loop because variable "l" because it is used in the for condition