1 2 3 4 5 6 7 8
Object.defineProperty(Object.prototype, 'x', { set: function() {} }); var obj = {}; for (var i = 0; i < 100 ; ++i) { obj.x = 1; delete obj.x; }