michael@0: Object.defineProperty(Object.prototype, 'x', { michael@0: set: function() { evalcx('lazy'); } michael@0: }); michael@0: var obj = {}; michael@0: var prot = {}; michael@0: obj.__proto__ = prot; michael@0: obj.watch("x", function (id, oldval, newval) {}); michael@0: for (var str in 'A') { michael@0: obj.x = 1; michael@0: }