# weak-set

Locked, prototype-pollution-resistant copy of the global `WeakSet` constructor.

The `WeakSet` constructor is wrapped in a [`createWeakSet`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/weak-set/#api-createWeakSet) factory at module-load time and frozen into a tamper-proof namespace, so weakly-held membership tracking keeps working even if the global `WeakSet` is later patched. Effective only when imported before any untrusted code has had a chance to mutate the prototype chain.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/weak-set/
This file: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/weak-set.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
