Locale string comparison does not work properly in Firefox extension web worker

旧街凉风 提交于 2019-12-05 13:43:52

localeCompare is still broken in Firefox Web Workers. Wladimir mentioned Bug 616841, which indeed fixed it almost everywhere... except for web workers, which were left broken because the Intl backend was (is?) not thread-safe, or some other thread-safety issues. The corresponding "Dead end" patch was never reviewed nor checked in.

I now filed Bug 903780, with a test case based on your code, so that localeCompare hopefully will be fixed in the future.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!