1 2 3 4 5 6 7 8
// Clearing an empty Set has no effect. var s = new Set(); for (var i = 0; i < 2; i++) { s.clear(); assertEq(s.size, 0); assertEq(s.has(undefined), false); }