michael@0: // vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: michael@0: var count = 0; michael@0: this.watch("x", function() { michael@0: count++; michael@0: }); michael@0: for(var i=0; i<10; i++) { michael@0: x = 2; michael@0: } michael@0: assertEq(count, 10);