I was really confused by this error for ~10 minutes or so. Usually when this happens to me, I missed a closing/opening brace somewhere or I forgot to add () after my anonymous function declaration to actually run it.
This time though all the braces were lining up and I had () there appropriately. I finally gave up on that error and started working on the next one and when I looked there (using if instead of for with the range operator) I realized I had a bug fixed it and my first error went away too.
Not sure if this is anything to be too worried about, but I found it confusing and wasn't sure if this was worth a bug report or not.
Change line 13 from if to for and everything works.
Great project/language, thanks for everyone's work on it!