binding function for Set.prototype.clear.