Document.createTextNode("\u{feff}") in quote-button.js.es6 breaks the latest Opera Browser


(Discourse.PRO) #1

The message in Developer Console:

Uncaught SyntaxError: Unexpected token ILLEGAL

Opera 30.0.1835.125


JavaScript error creating text node of non-breaking space on Windows Mobile
(Discourse.PRO) #2

I have quick fixed it for myself by replacing from "\u{feff}" to "".


(Robin Ward) #3

I tried on the latest Opera on OSX and could not reproduce the bug. However the error seems to be that it doesn’t understand the ES6 unicode format, which we should be transpiling. I added it as an option to babel:

https://github.com/discourse/discourse/commit/3c742918fe581f0752d1cfd3d0995923a908674b

Could you upgrade to our latest and try again? It should be transpiled properly now.


(Jeff Atwood) #4

This topic was automatically closed after 24 hours. New replies are no longer allowed.