Closed anba closed 1 year ago
In my polyfill implementation, this test case passes - what's the failure you see based on the spec?
@ljharb The problem is that resultSetData
, and therefore the final result.[[SetData]]
, will have a duplicate entry. That's not supposed to happen. And with the algorithms as written it would be observable by iterating over the resulting set and seeing a single value twice.
ah ok, but because my implementation uses actual Set, the resulting set is deduped for me, but that won't necessarily be the case in engines. makes sense.
Calling
otherRec.[[Has]]
can modifyO.[[SetData]]
to re-add an already visited key.Test case: