This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Set.prototype.intersection needs to check for duplicate elements in step 6 #83
Comments
In my polyfill implementation, this test case passes - what's the failure you see based on the spec? |
@ljharb The problem is that |
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. |
ljharb
added a commit
to es-shims/Set.prototype.intersection
that referenced
this issue
Jan 11, 2023
ljharb
added a commit
to es-shims/Set.prototype.intersection
that referenced
this issue
Jan 11, 2023
ljharb
added a commit
to es-shims/Set.prototype.intersection
that referenced
this issue
Jan 11, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Calling
otherRec.[[Has]]
can modifyO.[[SetData]]
to re-add an already visited key.Test case:
The text was updated successfully, but these errors were encountered: