Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
supercoder
· 11y ago · 0 comments
SyntaxError: Unexpected use of reserved word 'let' in strict mode
Comments
[–]
Udo
11y ago
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).
[–]
m1el
11y ago
It should work in Firefox, there is a workaround specifically for that.
[–]
Udo
11y ago
It does work for me on FF, although it prints an error to console before the workaround kicks in.