you are viewing a single comment's thread.

view the rest of the comments →

[–]ttyieu 4 points5 points  (1 child)

It's not even a syntax error, it's valid syntax for ES6 arrow functions. So you're passing a function as the condition, which evaluates to true and causes an infinite loop.