Bug 251869
| Summary: | Iteration order of Set.prototype.intersection is different from proposed spec when this.size > other.size | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Keith Miller <keith_miller> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ross.kirsling, webkit-bug-importer |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Keith Miller
It's currently specified that the order should be the same as the this value even though we iterate on the other object. This is difficult in our implementation because we can't O(1) test the order of two elements.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Keith Miller
Also, heres's the issue tracker for this on the spec side: https://github.com/tc39/proposal-set-methods/issues/91
Ross Kirsling
Looks like the plenary decision was just to drop the sorting step, so we can simply remove the FIXME.