1 2 3 4 5 6 7
// Self-hosted JS code shouldn't be used for error message. try { new Set(...[1]); } catch (e) { assertEq(e.message, "1 is not iterable"); }