html-entities icon indicating copy to clipboard operation
html-entities copied to clipboard

safari 12 \ud835 error

Open reyhappen opened this issue 1 year ago • 2 comments

There's an error: SyntaxError: Invalid character '\ud835' in safari 12.1.2

reyhappen avatar Jun 07 '24 04:06 reyhappen

same error here on SyntaxError: Invalid unicode escape in identifier: '\u2118'

when the named-references file is loaded (https://github.com/mdevils/html-entities/blob/master/src/named-references.ts), this error is triggered in Safari 12.1

OK with Safari 12.3 and 12.4

(Tested on Browserstack)

acailly avatar Oct 08 '24 13:10 acailly

maybe this is related: https://github.com/prettier/prettier/issues/5052

acailly avatar Oct 08 '24 13:10 acailly

Hello @reyhappen and @acailly! I've tested the built files against Safari 12.1.2 and it worked fine. Can it be that your build tool does something during the bundling process that breaks Safari?

mdevils avatar Nov 03 '24 09:11 mdevils

I'm closing this issue. Feel free to reopen in case if you're sure it's connected to this package directly.

mdevils avatar Nov 03 '24 09:11 mdevils