I gives a proper error ("Error: undefined identifier lol.length") here when the declaration is placed inside a function. Crashes everywhere else though.