Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Safari 14.1 NumberFormat issue #89

Merged
merged 1 commit into from
Jun 17, 2021
Merged

fix Safari 14.1 NumberFormat issue #89

merged 1 commit into from
Jun 17, 2021

Conversation

dlockhart
Copy link
Member

There's a weird issue with Intl.NumberFormat that Apple introduced in Safari 14.1 that only affects macOS Mojave users (10.14). If you use the signDisplay option, it throws an exception with the message Failed to initialize NumberFormat since used feature is not supported in the linked ICU version. This is not a problem on later versions of macOS.

Our usage here of the signDisplay option wasn't necessary anyway, since we take the absolute value of the number on the line above and then add in the negative symbol later anyway.

Apple has addressed the issue, but it's not clear when that will be released.

@dlockhart dlockhart requested a review from margaree June 17, 2021 18:45
@dlockhart dlockhart merged commit 959168e into master Jun 17, 2021
@dlockhart dlockhart deleted the fix-safari-14 branch June 17, 2021 18:54
@ghost
Copy link

ghost commented Jun 17, 2021

🎉 This PR is included in version 3.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants