WeakSet() already throws.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1083752
WeakSet() throws only because it's not even a function yet. It should throw (when it's implemented) because a new target is not defined. Current error: `TypeError: WeakSet is not a function` The other bug didn't have any reference to Map, WeakMap and WeakSet. I added a comment there to not let the issue persist on the other collections Objects.
Thanks for reporting. I changed the bug summary of the other bug before duping though. You might be confused by the weird error message for WeakSet(). new WeakSet already works.
> new WeakSet already works. oops, that was my bad. It works for sure. I didn't notice the change on the bug summary before. Thanks!
No worries. Thanks again for helping out.
You need to log in before you can comment on or make changes to this bug.