summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug625438.js
blob: 32586d8ab4fa01f8a941789c1029d2677f9768be (plain)
1
2
3
4
5
6
7
8
9
10
// vim: set ts=8 sts=4 et sw=4 tw=99:

var count = 0;
this.watch("x", function() {
    count++;
});
for(var i=0; i<10; i++) {
    x = 2;
}
assertEq(count, 10);