A weakset polyfill.