const weakSet = new WeakSet({a:1}); // looping through WeakSet for (let i of weakSet) { // TypeError console.log(i); }