Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

SyntaxError: Unexpected use of reserved word 'let' in strict mode


Are you on Firefox by chance? I discovered this week that Firefox doesn't do ES6 on included <script> files unless you specify an explicit content type enabling it (which in turn breaks things on all other browsers).


It should work in Firefox, there is a workaround specifically for that.


It does work for me on FF, although it prints an error to console before the workaround kicks in.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: