Skip to content

[browser] Limit PNSE in HybridGlobalization #95921

Closed
@ilonatommy

Description

@ilonatommy

#95920 updated the doc with APIs that are throwing PlatformNotSupportedException by design. Consider:

  • implementing invariant SortKey in HybridGlobalization
  • changing comparison options to supported ones.

SortKey:

  • JS does not expose API that would give us similar information to SortKey
  • Intl.Collator-based implementation of SortKey could be an alternative to the original, locale-sensitive SortKey. However, we have no guarantee that the implementation would give similar results and would not cost us too much space.
  • Invariant SortKey does not cover fully the original, locale-sensitive functionality, however it is the best alternative when it comes to saving space - it's already implemented, we would reuse existing code. Document the changes in behavior.

CompareOptions:

  • some combinations of compare options are not supported (see the doc)
  • APIs in other, non-globalization libs use these combinations, becoming not supported
  • Check if they would not work equally good with another compare options set that is supported and document the changes in behavior.

Old issue discussing the possibilities:
#84621

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions