I just meant to remove all the function calls it doesn’t matter if they are inside console.log calls. So if you remove everything except the function definition the message should go away.
Not sure how or when (under what condition) the message gets generated. It’s just some arbitrary approximation of time passed as a cut-off point, you can’t actually know if code is in an infinite loop (that would literally take forever and never result in an answer).
Edit: I guess you can do static code analysis and make a good guess as to if the code is in an infinite loop state. But you still can’t physically prove it by waiting.
Sorry if I was confusing you with the extra stuff, I just meant to say you can’t prove something is infinite, loop, or otherwise. You can only guesstimate it.
It’s irrelevant anyway, there is some infinite loop protection and warning that is generated using some condition. Apparently having the function calls triggers it.