Summary: | Inconsistent output compared with other JS engines when using sort() | ||
---|---|---|---|
Product: | WebKit | Reporter: | sunlili |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | ggaren, ysuzuki |
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
sunlili
2018-06-27 21:26:50 PDT
I think this is OK. This relies on how comparator is called (since it does not produce consistent results, comp(a, b) => -1 comp(b, a) => -1), and it is implementation dependent according to the spec. |