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

The message in Developer Console:

Uncaught SyntaxError: Unexpected token ILLEGAL

Opera 30.0.1835.125

1 Like

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

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.

3 Likes

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