Closed bvanheu closed 1 year ago
This avoid infinite loop when a symbol is redefined in the function's scope.
For example, the following should not result in infinite loop:
function f1(a,b) { return function (c,d) { function redefined(e,f){return e+f;} function f3(g, h){return redefined(g,h);} return function(i,j) { function redefined(k, l) { return f3(k, l); } return redefined(i,j) }(c,d); }(a,b); }; console.log(f1(1,2));
Sorry for not getting to this for so long, thanks for contributing
This avoid infinite loop when a symbol is redefined in the function's scope.
For example, the following should not result in infinite loop: