Avoiding errors from enumerables in Object.prototype