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: JavaScriptCoreAssignee: 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   

Description Keith Miller 2023-02-07 11:09:22 PST
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.
Comment 1 Keith Miller 2023-02-07 11:29:33 PST
Also, heres's the issue tracker for this on the spec side: https://github.com/tc39/proposal-set-methods/issues/91
Comment 2 Ross Kirsling 2023-03-21 18:36:00 PDT
Looks like the plenary decision was just to drop the sorting step, so we can simply remove the FIXME.