I read this How to run ES6 code with arrow functions in Safari? but this question since January 2016. I also founded one issue about this on github, but it also since 2016.
I use the arrow functions, and my main script looks like that (()=>{ ... })()
. So, it works nicely in all browsers except Safari 9. The last one gives me an error SyntaxError: Unexpected token ')'
.
Following the attached link, I found that "Safari doesn't yet support this feature". In the MDN site I didn't found anywhere that Safari doesn't support this stuff. I was here too http://kangax.github.io/compat-table/es6/. I don't very well understand the table there, but I see the Safari and it is green.
So, I don't undersand, Safari support arrow functions or still not? Or my error have some other reason?